powershell
Hi Team,Need one help...I have one security group and 100 people added in that.I want to remove 95 people from that security group and ofcouse i have NT ID for them.How can we do this?ThanksAmit A.
View ArticlePowershell Script to RDP Automatically into Multiple Servers.
Hi,My main purpose of this Question is to get a Powershell Script which allows me to RDP into multiple servers. Also, the RDP Session should get the Authentication credential from the Script itself via...
View ArticleCreate CSV for list of files and folders
HelloI want to create a list of folders, their nested folder and files under each folder alongwith their file attributes likeFileNameLocationSizeFileTypeLastModifiedBy (Username who modified the file...
View ArticlePassing command line arguments in SQLPS
Hi,I have written a powershell scripts which does some database operations. I used to call this script using SQLPS. Now I would like to add a command line argument when executing script using SQLPS. I...
View ArticleAll AD user-accounts that are about to expire and from which Offie?
I already have a script that gives me the expire date and creates a csv file, but what I would like to add is the I also can see which Office the users belong to and that when Excel opens the csv file...
View Articlexml programming
hey,<PlaylistSharing> <User id="Robert"> -<playlist id="pop songs" rating="2"> -<song> <artist>Robbie Williams</artist> <title>Candy</title>...
View ArticleHow to ask a hash table inside a hash table
I have the following code which works but I would like to write to the output the users DN but I cannot work out how to access the imbedded hash table. Can any help me with this simply fix :)$usersou =...
View ArticleCant install PS on seever 2003
HiI wish to install PS on server 2003 and the .netframework version currrently is version 4.0I tried to install PS v 1.0 but I get the error message about .et 3.5.1 sp1 needing installingI tried...
View ArticleHow to Specify a Specific IP Address from a Pool in PowerShell Script (SCVMM)
Hi,When creating a VM through powershell scripting which uses an IP Pool to get an IP address, we need on some occasions to be able to specify the IP to use (for example reprovisioning VMs from a...
View ArticleParsing Security Log with Get-EventLog
Below, I have my code. The following does what i need for it do. It remotely connects to Legacy Server 2003 systems, accesses the Security Log for Event ID 528. Parses out the Time Stamp,...
View Articlecannot set vmnetworkadaptervlan on new extensible switch
I have been following a simple procedure to create 2 Hyper-v hosts with one ManagementOS extensible switch however when I try to add vlans to the vmnetworkadapters on the extensible switch I just...
View ArticleIf you want to access the PowerShell 3.0 Help in another language please vote...
All my Windows operating Systems are set to use the UI Culture: German With Update-Help or Save-Help you can download PowerShell help in different (any) language by use of the –UICulture parameter....
View ArticleTrying to filter results
I have a PS command that does almost everything I need, except I want to filter the results.the command is:Get-Mailbox -identity UserName |Get-MailboxFolderStatistics | sort-object ItemsInFolder |FT...
View ArticleParsing XML and filtering/sorting problem
Hi. My case is this. I have an XML-file that I am trying to parse output from and sort. The XML is a file containing metadata of ESXi patches from VMware, downloaded using VMware Update Manager...
View ArticleNew-WebServiceProxy URI filename
The help says that you can point to a WSDL file for the URI parameter. But I keep getting:New-WebServiceProxy : Invalid URI: The format of the URI could not be determined.Can someone give a working...
View ArticleScope problem with array parameters
Hello,Recently, I tried to write a function that operates on an array of integers, but I ran into a problem with the scope. The function is the following:function t1{param($a)$a[2] = 1000return...
View ArticlePowershell output file problem
I wish to use Powershell v1.0 to delete all thumbs.db files on a network share.I use the following with the -WhatIfGet-ChildItem -Path . -Include Thumbs.db -Recurse -Name -Force | Remove-Item -Force...
View Articlefiles - check the creation date, rename and move
Hello,I have got a problem to write a simple powershell script.Description: I have got a folder (D:\ba02) on my workstation, to that foder is created one to 8 files every morning - there is only that 8...
View ArticleAdding heading to a powershell report
I have various powershell reports that generate output in .txt files but i want be able to add a comment to the text file above the report information ie;Get-qaduser -NotloggedOnFor 30 -sizelimit 0...
View Articlerun powershell commands on remote computer
HiI have trapsed about the internet looking for a way to run a powershell command on a remote machine but no matter how many varuations i try -no diceI am trying to use the invoke-command -computername...
View Article