Remove Port ACL from particular VNIC in VM
In cmdlet Remove-VMNetworkAdapterAcl [-VMNetworkAdapter] <VMNetworkAdapterBase[]> -Action <VMNetworkAdapterAclAction> -Direction <VMNetworkAdapterAclDirection> [-LocalIPAddress...
View ArticleGet-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 Articlehelp 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 Articlemerger 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 Articlebitstransfer - 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 ArticleOffice 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 Articlepowershell 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 ArticleScript 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 ArticleList 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 ArticleCreating 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 ArticlePowershell 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 ArticleGet 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 ArticleWindows 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 ArticleRIP 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 ArticleInitialize 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 ArticleHow 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 ArticleSet 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 ArticleChange 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 ArticleHow 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 ArticleHow 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