to 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 ArticleWhen using the Get-Mailbox command for pst import, how should the pst be named?
When trying to import multiple .pst files, example below, would the .pst's need to be named the alias of what the users account is? Get-Mailbox –Database "Mail\First Storage Group\Mailbox Database" |...
View ArticleDisplay Get-Process with ListView
I'm experimenting with PowerShell and trying to learn more about it. So far I've grasped the basics and am now trying to use it in conjunction PrimalForms to create a GUI. What I want to do is, with...
View ArticleInvoke-Command and Get-WindowsFeatures
Hi,I'm having some difficulty writing a little script. I want to accomplish that the installed Windows Roles and Features correspond to an inputfile locally on the remote machine which contains the...
View ArticleFilterBased on Extended Attributes (employeeNumber) and Dispaly sAMAccountName
I have a list of employee numbers and want to get sAMAccoutName and use those in a script to terminate accounts. Below is what I managed to put together but it does not give me what I want. Any help...
View ArticleUsing Microsoft.Powershell.Commands fails on Server 2008 R2 with Powershell...
I have a simple script that checks the EnhancedKeyUsageProperty of a certificate installed on a local machine. If a specific Root CA gets enabled, sites for the client fail so I am querying to ensure...
View ArticleFile Verification - If File Exists Continue - If Not Quit
Hello,I'm having a little issue, below is an abstract from my script...Enter-PSSession $compname cd c:\local\NewLocalProfile $tname = Read-Host "Enter Target Username" takeown /F c:\users\$tname...
View ArticleCalling MSBuild through a remote Invoke
I'm trying to write some remote deploy scripts. I'm using a powershell script to copy an MSI, run the MSI, and then run an MSBuild script afterwards (this is a BizTalk install so I'm running a .btproj...
View ArticleRemote Script Execution
I have a script (install.ps1) which uses functions from another script (Functions.ps1) using dot source. I am trying to execute the install.ps1 on a remote server using Invoke-Command. However it fails...
View ArticleCreate Team Foundation WorkItem with PowerShell
Hello,I want to create a work item from type task when a build quality is changed to a special value.How can I do something with powershell? I hope somebody can help me and bring me on the right way to...
View ArticleUpdate Regional Location Powershell
Hi,I have applied kb273125 to my server 2008 servers to add South Sudan to the list of Recognized Countries.From the info I can find Exchange 2010 appears to pull country information from Powershell...
View ArticleHow to Get Mailbox First activity and last activity
Is it possible to get first and last mail item created in the mailbox???Is there any powershell cmdlets there to get these values???orIs it possible to values using EWS managed API???
View ArticleIf statement question
Would anyone know why my function works except for the first "If" statement I have in the process block?I swear all of this worked last night...#Gets Java version from a computer list entered by...
View ArticlePowershell 3.0 Workflows
Is there tool which allows a more visual creation of powershell 3.0 workflows? Like a visual studio extension or something?val it: unit=()
View ArticleFinding when a Exchange Store last backed up via script
Dears, Glen Scales has posted a script here Website that could be useful to check when was the last time each Database has been backed up, the code goes like this...
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 ArticleHow to check if an AD attribute is not set
Hi,I'm guessing this is pretty easy when you know how, but I don't know the syntax. I'm querying AD and want to process users in an OU, but I only want to process users who have proxyAddresses set. How...
View ArticlePowershell nesting help
I have the following code which works like a dream to find the relevant mac address and changes the network adapter name:$macaddress = "%macaddress%" $newname = "%networkname%" $NicInterfaceName =...
View ArticleChanging Local Admin Password
I'm writing a script to automate my server builds. part of the script is changing the local administrator password. I'm trying to save the password as a secure string into a txt file and then after a...
View ArticleGenerate Excel which Shows ADUsers and his Groups in a Matrix with AllGroups
Hi There.I Need an Excel table for managemet, which Shows the following:The Colums should be named as Username ActiveDirectory and some Properties and ALL Groups which are availible in Active...
View Article