Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

Remove Port ACL from particular VNIC in VM

In cmdlet Remove-VMNetworkAdapterAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-LocalIPAddress...

View Article


Get-date

Hello,my project start was "01 Sept 2012" and i am generating bi-weekly reports to see the project progress. so i need to pipe the Get-date to be (Today - "01 Sept 2012) how I can do that ?the script...

View Article


help using trim to only select parts of a filename..

HiI have an assignment where I need to select some text in a filenameFilename syntax reads:John_Doe_Johnson_jdj.jpgSo the first part is the name of a user, the last part is the logon nameThe filenames...

View Article

merger 2 arrays powershell

i have 2 arrays with the following data:$users = 'userx','userb','userc','userd','usere'$ids = 1,2,3,4,5I would like the result to look like this:userx 1 userb 2 userc 3 userd 4 usere 5Any...

View Article

bitstransfer - maual code works, run script doesn't... ?

Hi Maybe it's simple .. I hope so.. but I have a problem.. I am copying some files from one server to another (running script from a 3rd) If I manually enter the code.. It works.. Yay.. When I put it...

View Article


Office 365/Powershell Can I change all my distro groups from Universal to...

Like the title says, I need to change all my distribution groups from the "Universal" group type to "Universal, Security Enabled". I know that by default this is not possible, however it should be...

View Article

powershell error "A constraint violation occurred" on setinfo

I am trying to update the managedBy attribute of a list of groups read from excel. Below is my script which worked fine a month ago but not am getting an error "Exception calling "Setinfo" with "0"...

View Article

Script freezing when calling a PS1 inside a foreach loop

I have a loop in a .ps1 script that calls another .ps1 file each time it loops. The script it calls in the loop is a very small one line script, nothing heavy duty.I dot source to call the script....

View Article


List of Sites and Application pools in IIS

Hi Team ,How to get the list of sites and application pools in my IIS console in the server using powershellRegards,Devendra MCTS,MCPD Sharepoint 2010. My Blog- http://www.sharepoint-journey.com If a...

View Article


Creating a menu but doesn't exit

Hi,I have created a menu, but have the following issue:It doesn't exit when the user enters in the number specified for exitCode: #Declare Exit Variable $Exit = "10" #Start of Do while loop Do {...

View Article

Powershell expert help needed in powershell remoting C#

im trying to powershell remotign to  a computer and im using wsman for the conenction WSManConnectionInfo connectionInfo = new WSManConnectionInfo(false, sharepointHost, 5985, "/wsman",...

View Article

Get IIS logs,ULS and Event Logs using powershell with Date and level(critical)

Hi Team,How to Get IIS logs,ULS and Event Logs using powershell with Date and level(critical).Regards,DevendraMCTS,MCPD Sharepoint 2010. My Blog- http://www.sharepoint-journey.com If a post answers...

View Article

Windows Server 2012 AD-DS can not be configured or uninistalled...

Good Afternoon everyone, I am currently trying to promote my 2012 Server to a Domain Controller but when I am at the first step in the setup I get the Error Message (German, Original Message):...

View Article


RIP Will Steele

Maybe OT, but...It seems Will Steele, a contributor and participant on may threads in this forum has passed away, having succomed to a rare and very agressive form of...

View Article

Initialize an empty array with properties;

hi I want to create an array and use it for storing some DB related info example: $DBMirroringInfo = @() $DBMirroringInfo +=("DB1","Mirrored") $DBMirroringInfo +=("DB2","Not Mirrored") Is there a way...

View Article


How do I give PowerShell access to folders?

I have this array of servers.  What I'm trying to do is access one folder and search all items in the folder for specific criteria that I provide.  The problem is that the folder itself has a yellow...

View Article

Set SiteCollection Admin error

constructing a code that would run in MOSS & SharePoint 2010thats why am not using any snapins, i made the following code, the user is added but when the code reaches the point where i assign the...

View Article


Change Keyboard Layout thru Powershell 3

Hi,I would need a PowerShell script to change my keyboard layout. I have in Windows installed Finnish, English (United States) and Russian layouts and I would need a simple function that takes one...

View Article

How can I write only regex matches with export-csv

I've been racking my brain on this one for a while. it's probably really simple but I just can't figure it out.Basically I'm trying to collect the host header information form a bunch of web servers...

View Article

How to upload files to sharepoint 2010 (without using the sharepoint...

How can I use PowerShell to upload a file from a Win 7 workstation to http://sharepoint/Shared Documents/stuff?Everything I have found talks about using the PowerShell command-lets like Get-SP on the...

View Article
Browsing all 2562 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>