Quantcast
Channel: PowerShell General
Browsing all 10624 articles
Browse latest View live

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 Article


Modifying 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 Article


Finding 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 Article

How 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 Article

SQL 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 Article


Table 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 Article

Image may be NSFW.
Clik here to view.

Monitoring 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 Article

Use 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 Article


Powershell 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 Article


How 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 Article

Image may be NSFW.
Clik here to view.

Excluding 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 Article

Monitor & 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 Article

how 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 Article


Getting 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 Article

Making 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 Article


Fixing 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 Article

modify 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 Article


Get-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 Article

Getting Current URL

HiI am looking for getting current URL string using powershell.Is it possible?

View Article

Setting 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
Browsing all 10624 articles
Browse latest View live