Quantcast
Browsing all 21975 articles
Browse latest View live

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 Article


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


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

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

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


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

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

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


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


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

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

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

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


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

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


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

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


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

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

Generate 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
Browsing all 21975 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>