Quantcast
Channel: Windows PowerShell Forum
Browsing all 2562 articles
Browse latest View live

change primary smtp

Need to change the primary smtp for some users in exchange 2007. they already have the other smtp address as an alias. example flast@domain.com now i need to have first.last@domain2.com thankyou

View Article


Installing a .ISO file (with powershell and automated, if possible)

Actually I just downloaded two files which were then .ISO files. Now, how would I use powershell to make it install on my computer (The files are both from Visual Studio 2010). I just heard you can...

View Article


Image may be NSFW.
Clik here to view.

List the PublicKey length

Wondering if there is a way to list the length of the PublicKey of a digital certificate in the certificate store? If I build an object with all the certs and then list them out I don't get the same...

View Article

Source Code Management

Hi, Is there any source code management product for Powershell?  Similar to VS for all the .NET languages. Right now for all my codes I store them in a network share and point all my jobs to them.  If...

View Article

Powershell accept input into ad-user -Filter

Powershell noob here.  Trying to get a simple Powershell script to work but am having trouble getting double quotes into a variable.  Basically all I want to be able to do is find a username based on...

View Article


How do I resolve the "Size limit exceeded for Get-Adgroupmember" error when...

Hello, I run the following commands from the 2.0 Command line on a Domain Controller to list the members of a large group (thousands of members) and to count the number of objects (measure-object):...

View Article

enabling/disabling a GPO

GPanswers provided a script to enable and disable a GPO.  A work around for me that I can use to solve a nagging problem with deleting profiles.  Anway I modified the script for my environment but I...

View Article

Module Rewrite / Best Practice

Hello, I am looking for some advice / best practices on this particular scenario.  I have a .NET library with some objects that perform certain server setup / configuration operations.  Some of these...

View Article


Download blob file from sql table

Hello is there a way to download a varbinary blob file that is being stored in a sql table? This is not a sharepoint table, its just one of our own tables that we decided to store files into. Thank you.

View Article


PS Unicode to Ascii conversion

Hello All, I am trying to resolve the problem of converting unicode file into Ansi or Ascii.  get-content t1.txt  or gc t1.txt -encoding ascii  - do not work. I wish I would be able to attach this file...

View Article

Powershell - Modifying permissions on a subfolder?

This one seems so simple, but couldnt find any info on it i'm trying to get permissions on a subfolder of the home directory I'm getting the home directory with  $users = get-aduser Blah -properties...

View Article

Limit the attributes

I previously receieved an answer to a script question and now I need to limit the answer.  From below if run this will list all certs keys what I am looking to do is list only keys less than a length...

View Article

Accessing a specific index value in a Hash table

Hello! I have a hash table with values equal to "value1 value2 value3 value4". The key is Test. So I delcare like so: $hash = @{Test = "value1 value2 value3 value4"} My question, is there anyway to...

View Article


Run Powershell script as Scheduled task, that uses Excel COM object

What am I missing here..   I have  Powershell script that uses the Quest AD cmdlets to get computer information from AD and populate an Excel spreadsheet with the data. The script works fine, so I...

View Article

Set-Aduser update Country/region attribute field in ADUC

Hi, I have a script that checks a DB with user details and updates AD with those details. I can update all required fields except the country/region field. I know the attribute is co and i got it...

View Article


How could I know the number of object the cmdlet output ?

How could I know the number of object the cmdlet output ? It sounds easy but I could not find answer.

View Article

PowerShell Newbie - Command Question

I have a Spreadsheet with a list of users and their BB PIN Numbers.  These users all belong to a specific Group in AD.  Can I read from the SpreadSheet and import the BB PIN # into the correct account...

View Article


Powershell and Winzip Self extract

Hi All, i'm having a problem using powershell to execute a winzip self extract file... basically, if i ran the command line c:\temp\file.exe /auto c:\temp\tempfolder in a powershell it does without any...

View Article

Getting the v2 ISE back with PowerShell 3

Is there any way to get the PowerShell 2 ISE back in PowerShell 3?

View Article

SharePoint 2010: Iterate through lists within a site and set alerts for user

So I've been struggling with my script to iterate through lists in a site, not a site collection, and set alerts in every list for a power user.  I finally debugged the code enough to where there are...

View Article
Browsing all 2562 articles
Browse latest View live


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