Powershell and Active Directory
Hi Expert,I am Sachin, new to powershell and Active directory. I am creating a web based application(asp.net, C#) which should create a new user/group in Active Directory. I want to run that...
View ArticleModifying Active directory through Powershell
Hi Expert,I am Sachin, new to powershell and Active directory. I am creating a web based application(asp.net, C#) which should create a new user/group in Active Directory. I want to run that...
View ArticleFinding all *pst and *.doc files on the c:drive from a list of computers
Hi All, I'm a beginner (Im sure you hear that all the time!) I'm looking to do this step by step so i understand how it all works, thanks in advance for the help. Outcome: Powershell to look at a list...
View ArticleHow to list service properties for multiple services
I know I can get the status of a service using this command: get-wmiobject win32_service |where {$_.name -match "bits"} to return all the properties I need (Name, StartMode, and State). ExitCode : 0...
View ArticleSQL Services verify
I am looking for powershell script to verify SQL Server services from centralised location.I want to create SQL Agent job schedule to run on weekly basis to verify the SQL Instance once after...
View ArticleTable to line
I'm usingGet-WmiObject -Class Win32_MappedLogicalDisk | Select-Object -Property DeviceID,ProviderName to find mapped drives and it work with an output to a table but I',m looking to have it in a...
View ArticleMonitoring Open URL
HiCan we list the currently open website (in firefox)Because Task Manager shows the name of currently focused website name in application tab, and in process tab we see its respected process...
View ArticleUse WMI to get Script Host Error Content?
I work at a company that has many VBScripts that regularly have error messages. Until recently we had to go into the server and look for these errors. I have put together a script using:Get-Process|...
View ArticlePowershell and WMI setting DNS
Hi Richard,First off i want to say that your book is awesome and is so well laid out and easy(er for WMI) to understand. Could i also pick your brains in an issue i am having with some end users. All...
View ArticleHow to capture meta data from video playback
Hi,I want to know if we have any option in powershell to capture the meta data (encoder used, files per second, resolution etc) of a video played inside an application like Office Communicator or Skype...
View ArticleExcluding selections
I have been writing a script to collect info from AD, namely groups and their members.The script works......but it gives me more info than I need. What I want to acheive is to exclude the Domain Users...
View ArticleMonitor & Log Mapped drive/Network shares
We’ve been asked to monitor if a network/mapped drive is available. I did find I can see drive data using the gwmi & filter for the “DriveType” Gwmi Win32_LogicalDisk -filter...
View Articlehow to check for antivirus product in a server 2008 host?
hi,i know that for a client computer with windows os it's easy, we have the AntiVirusProduct class in root\SecurityCenter2 namespace. how to get the antivirus product data in a server environment?...
View ArticleGetting MSiSCSI status for discovered targets with WMI
Hello!I've been trying to develop a monitoring script for iSCSI connections in a Hyper-V environment. We are using MSiSCSI Initiator to map LUNs.So far I'm able to retrieve info about connected...
View ArticleMaking changes to local accounts
Hi, was in a situation where we had a specific local account on 1200 PCs that had been disabled due to security scans. Using the following I've been able to unlock the account on almost all 1200...
View ArticleFixing permissions in/for RemoteRegistry
Hey, I'm coming from Don and Jeff's forum, having started the following thread; http://powershell.com/cs/forums/p/10682/18220.aspx#18220.What I was told I could find out here (I couldn't figure out if...
View Articlemodify dns server settings on several servers
Hi there,i am hoping someone out there can help. I need to create a script to update the dns settings on several of our servers. Some servers will need both the preferred dns server and alternate dns...
View ArticleGet-WmiObject : Access is denied. (Exception from HRESULT: 0x80070005...
Hi Richard,I am a newbie to Powershell. I have been reading and testing code while learning. Right now, I am stuck on something I am sure is silly.My code:#$strUser = Read-Host "Enter user...
View ArticleGetting Current URL
HiI am looking for getting current URL string using powershell.Is it possible?
View ArticleSetting server descriptions
I wrote a simple powershell script that goes out and grabs the computer description.The one that you can enter under the "Computer name" tab in my computer properties.My company enters alias' and...
View Article