Win32_DiskDrive not listing all devices
Hi,I have 2 Windows Server 2008 R2.Both of them have multipath installed. EMC Powerpath.On Host A,all the disks are listed in the Win32_DiskDrive class.Eg: DeviceID Model...
View ArticleWhere-Object Question
I'm trying to filter out some data in a csv flie I'm reading to generate another file but I can't seem to get my where to work.In a nut shell, I want to select all users that are missing some pieces of...
View ArticleTrying to add a value to REG_NONE in the Registry
I'm trying to add a value to the Windows Registry with key type of REG_NONE. I looked here, among other places, and it was no help:...
View ArticleImport, search, display and modify a CSV file.
I am new to powershell so please give me a bit of slack but this is what I have and what I am wanting to do:I have a CSV with |customer no.|full name|address| headingsI want to be able to prompt a...
View ArticleRead AD User Properties?
I know nothing about VB so this may be a newbie question. we map our users home drive using active directory. on a users properties in AD if you navigate to theprofile tab we map their H: drive...
View ArticleHow to Unzip folder which contains few more zip folders
hi i am trying to unzip folders and sub folders i have tried different ways and script but no luck. Can some one help on this $Date = Get-Date # $folder_date =...
View ArticleSkip Last 10
I have a group of sub-directories and I'm trying to go into each sub-directory, keep the last 10 files (last 10 means most recent) and delete any other files. I've been using other samples and code...
View ArticleBackground Job stuck after Copy-Item
i've a very strange issue with Background Job in Powershell. I writed 2 powershell script, the first Module.ps1 contains my function, it's very basic, It creates New Psdrive, then copy a empty file...
View Articleupdate id3 taglib powershell
Looking to clean up metadata on music files. Plan to load data for albums into spreadsheet, edit manually then update back to music files. Found scripts using getdetailsof() but haven't found a...
View ArticlePowerShell - Get first x characters from each line of text
I've got a text document and want to preform two things: 1) delete first 5 lines and 2) for each line of text, grab only the first 8 characters. To help me in my logic, I've got this broken down into...
View ArticleHow to create a list of sub directories from a security group, giving each...
Hi,I have a security group called "team", and in that group i have a list of users, eg fred, wilma, barneyI have a directory called c:\team and I am trying to use a scripts that will look at the...
View ArticleScript to check RDP connection status
Hi all,Could anyone provide me a script to check whether multiple remote servers are able to RDP or not. I just want to check the connectivity status. I have checked with past threads available in...
View Articlevbscript for installation
1. Need to delete registry entry for Sophos if exist2. Run setup.exe and monitor the process still it get closed by it self3.Delete again registry entry for Symantec that required restart.4. Run again...
View ArticleMailbox Migration Performance Analysis
I'm attempting to follow the steps per this website http://ppe.blogs.technet.com/b/exchange/archive/2014/03/24/mailbox-migration-performance-analysis.aspx in Exchange PowerShell and Step 4. is...
View ArticleQuery Active AD user
Hi Everyone,I need to query all active AD users with the following condition: - Only return active users with user ID that starts with a letter follow by numbers (eg x12345) except for user ID that...
View ArticleTrying to find all machines still running XP w/Powershell
I am trying to pull all machines on my network still with XP. This is what I have1 $Dom = 'LDAP://DC=contoso;DC=com'2 $Root = New-Object DirectoryServices.DirectoryEntry $Dom34 $i=056 # Create a...
View ArticleSend Receive Script
I am trying to run this script! I am not sure what i inputted incorrectly, possibly put the date format into the script wrong. At any rate what is the proper date format to use if i just need totals...
View ArticlePowershell script for gathering specific events ids for multiple computers
Hi Guys,I am trying to work on a powershell script in which we need to gather specific event ids for reboots across muliple computers in our organziation.The script works fine providing expected output...
View ArticleSend-MailMessage Timeout
Not sure if this is the right place or not. I developed a script that sends out notifications to users (about 1,000 each run) during the run my connection with Exchange times out. It appears that the...
View ArticleWbemtest query problem
I can read the instances of sms_advertisement when I enumerate the classes and look at the instances but when I try to run the query "select AdvertisementID from SMS_Advertisement" it runs successfully...
View Article