PowerShell - This HOst does not support transcription
I am using Powershell 3 on a windows 8 machine. When I type the commandstart-transcript -path c:\junk\chapter3.txtI get the error: This host does not support transcription.I get the same error when I...
View ArticleWhat permissions does a user need to read the registry or run wmi queries?
Where I am working now, they believe in the least access rule.The problem is, they are not sure what access my account needs to do inventories on several remote machines.And no, they won't make me a...
View Articlesearch content from emails (.msg) files
I created a script to search file contents. It works fine in other file types, but not be able to search from emails (.msg).Here it is the basic code: select-String c:\myfolder\*.* -pattern $keyword |...
View ArticleHow can I disabled exchange 2010 or 2007 mailboxes of Disabled AD user accounts
HiIs this possible to disable Exchange users mailboxes of AD disabled Users.
View Articleto set up auto out of office reply for disabled/deprovisioned Active...
We would like to set up auto out of office reply for disabled/deprovisioned Active Directory users. Is there a power shell script that I can use?
View ArticleHow can i pull a report that contains all physical server hostnames and ILO...
How can i pull a report that contains all physical server hostnames and ILO information through Powershell in my network.
View ArticleManage Event Logs Permissions Wevtutil - Windows 2008 R2
Dear,I need to add (Read, Write & Clear) permission to backup operators local security group in a windows 2008 R2 server. I run the below command:wevtutil sl Application...
View ArticleRegistry Checking For Remote Machine
Hello,I have checked on other forums and they seem to have bit's i need, but i'm getting confused piecing it together.Currently at the end of a function in my script i have...
View Articleget-vm and get-vhd to derive per vm disk stats
(get-vm VMname | select-object vmid | get-vhd).Filesize works fine when I run it on the host where the VM is running(get-vm VMname -ComputerName HypervHost | select-object vmid | get-vhd).Filesize...
View ArticleRunning As Admin with Alternative Credentials
hello, i have a script which needs to be set to run as admin, i have the below script to do so.Start-Process PowerShell -verb runas -ArgumentList '-noexit','-File','c:\pathtoscript.ps1'However my...
View Articlechanging value of path in hash table
Hi. I am working on an App-V script and I am hoping that someone can help me out as I am stuck.I am using "add-appvclientpackage" to populate a variable and the table looks like this:PackageId...
View ArticleScript to create distribution group and add members from csv file
I am not an advanced PowerShell scripter, so hoping some help here..I am trying to create and add distribution group members from a master excel book. The book has close to 300 sheets each with 1...
View ArticleSigning scripts - how to generate a CSR for dummies?
I know this isn't strictly a PowerShell question, but this seems the best place to ask this because...I am not a developer! (and I don't want to be one.)We don't run IIS.We don't have a PKI or the...
View ArticleHowto set permissions on disk under mountpoint powershell?
I have three file servers and need to automate tasks regarding setting permissions on folders on these.I have no problems setting permissions on the folders of the mountpoints, but cannot find a way to...
View Articlepowershell output
HiI have a string $a = ghie#:eta rt35:et4How do I seperate string into two linesghie#:eta rt35:et4my another question isI have a script that outputs number of variables$a=title$b=abc$c=123how do I...
View ArticleSelect Remote Licensing mode in Remote Desktop Host Session Configuration via...
Hello Is it possible at all to modify Remote Licensing mode in Remote Desktop Host Session Configuration via Powershell ? The manual steps are (Windows Server 2008) 1. Launch Remote Desktop Host...
View Articlerecursively find zip files and copy to another location
HiCan anyone explain how I would do a recursive search of a folder and subfolders and find files that contains *****_pass.zip or ******_fail.zip and then move them. I tried to do this gci...
View ArticleConverting from KB to MB within Query
I'm trying to run the following query: Get-PublicFolder -identity "\" -recurse | Where {($_.Replicas -match 'EMAIL-UK')} | Get-Publicfolderstatistics | Select-Object...
View ArticleCompairing information with the DHCP Server
Hello Guys/Gals;So I have the following line:$info=Get-ADComputer testcomputer -Propertiesipv4address,DistinguishedNameI then get the ipv4address information by typing $info.IPv4Address 192.168.1.100...
View ArticleMailing a quota report to file owner
Hi all,Trying to create quotas using powerShell. All is good except that I would like to email a report to the owner of the file that exceeds the threshold. I can add email addresses to the comand line...
View Article