Powershell output format
HiI'm looking for the best way to output data from my powershell.Basically im running a ForEach loop and want to print different dataforeach ($line in $data){}Eg.get-mailbox | select-object...
View ArticleCant run simple Exchange 2013 Powershell Script at Task Scheduler
Hi,i created a simple script named test.ps1, with the following content:Search-Mailbox -Identity "Mailboxname1" -SearchQuery "Subject:'Something'" -DeleteContent -Force Search-Mailbox -Identity...
View ArticleNeed help
Guys,I need help generating and exporting a list of users in AD that are not mail enabled and need the list to also show the OU that they are apart of.Chad
View ArticleAD Attribute from a Input File -- VB Script
I Would like to get some attribute details of bulk users through a Input file (txt/excel) using vb script.. any help !!
View ArticleConverting csv from a txt file
Hi,There is a txt file, I have updated which I need to convert to a csv file. The txt file looks something like this.Count,Test Number...
View ArticleGet-SysvolDFSRconf and Set-nonauthDFSRsysvol
Hi all,I would like to use the Powershell command: Get-SysvolDFSRconfIn which Powershell module does it belong?RegardsFlemming
View ArticleHow do I use a new line character using powershell for a registry value?
New-ItemProperty -Path HKLM:\SYSTEM\ControlSet001\services\WebClient\Parameters -Name AuthForwardServerList -PropertyType MultiString -Value "http:\\test.com'r'nhttps:\\test.com"Above is the code that...
View ArticleCan't install printer driver via powershell
This code was greate worked on Windows 2008.$driverclass = [WMIClass]"Win32_PrinterDriver"$driverobj = $driverclass.createinstance()$driverobj.Name="hp LaserJet 1320 PCL...
View ArticleGet Expanded Property and properties level below
Hello guys. I want to return the sub-property of property along with main properties of my object. Ex:Get-SCVirtualMachine -VMMServer scvmm -Name testvm2 | select Name,LocationBeside this properties i...
View ArticleNeed help figuring how to track DVD drive usage
I work at a public library and need to track how often the DVD drives are used by our patrons. Is there some count somewhere of how many times the drive is accessed? The only other way I can think of...
View ArticleHot Fix If exists
I'm working on a script that will pull the hotfixes installed on a server. The hotfixes i'm looking for is in a text file. I use get-content to load the hotfix KB numbers into an array. What i want to...
View ArticleGUID mis-match
Hi,When I PXE boot a PC, I can see Client MAC Address and GUIDI am capturing MAC address and GUID with Powershell , GUID wasn't same as was in the PXE Boot Screen.(Get-WmiObject win32_NetworkAdapter...
View ArticleVB script in Classic ASP
Hi,I'm migrating the VB scripts from Windows 2003 to Windows 2008 server. Server.CreateObject("Scripting.FileSystemObject") is not working? What is the alternate method for this?
View Articledsquery to vbs script
Hello All,I currently have a dsquery that I need ran everyday to make sure users in a specific OU never have the "password never expires" option checked. The dsquery looks like this, "dsquery user...
View ArticleScript to force a client to download and install Windows Patches from a WSUS...
Hi Guys,I am new to WSUS and also to scripting. Please forgive me, if my question is very basic or confusing.We have around 150 Windows 2008 R2 servers configured to receive updates from a WSUS server....
View ArticleAD - Powershell - Change home drive server path for multiple users
HiI am about to change the home drive file servers and I need to make the change on AD.The current setting is:"Home Folder > Connect to H: > \\oldfileservername\username$"How can I using...
View ArticleHow to query out replPropertyMetaData property
Hi, How to query out the replPropertyMetaData Active Directory property through LDAP methods?I am unable to use Get-ADReplicationAttributeMetaData as I do not have the function in my Powershell Version 3.
View ArticleWMI filtering / GPO for non domain members
Hi all,Our customer make use of a Windows Server 2008 R2 RDS. We use some thin clients and win7 workstations to connect with it inside our domain.We had a policy for automatic screen lock and secure...
View Articleweb request with authentication
I am trying to get/parse data from a website. The website requires autherntication (username,password).When my script runs, it returns the authentication page. This implied that its not authenticating....
View Articlecreate script\schedules task to clear local app temp files every 1 hour (PS...
create script\schedules task to clear local app temp files every 1 hour (PS last modified > 2 hrs) ? WINDOWS 2008 R2 can i have the steps to this...how to do?
View Article