Windows Server TechCenter
 
Sign in
United States (English) 
Brasil (Português)Česká republika (Čeština)Deutschland (Deutsch)España (Español)France (Français)Indonesia (Bahasa)Italia (Italiano)România (Română)Türkiye (Türkçe)Россия (Русский)ישראל (עברית)المملكة العربية السعودية (العربية)ไทย (ไทย)대한민국 (한국어)中华人民共和国 (中文)台灣 (中文)日本 (日本語)
 
 
HomeWindows Server 2012Windows Server 2008 R2Windows Server 2003LibraryForums
Ask a question
Quick access
  • Forums home
  • Browse forums users
  • FAQ
Announcement: 2

Windows PowerShell announcement

  • Link
    Local and virtual PowerShell user group listing
    Marco Shaw Friday, March 05, 2010 9:04 PM
    Find a PowerShell user group here: http://powershellgroup.org/
  • Link
    Marking questions as answered
    Marco Shaw Friday, February 26, 2010 2:22 AM
    Quite often, some users will be provided with a solution, yet won't mark the thread as answered.  The moderators of this forum will try to review almost every thread/answer, and may prematurely mark a thread as answered, when it isn't.  In cases like those, the original poster can feel free to unmark the thread as answered.

  • Remove From My Forums

Forums [ view all ]

Selected forums

Clear
Windows PowerShell
x
Filter : All threads
All threads
Answered
Unanswered
Proposed answers
General discussion

No replies
Helpful
Has code

All languages
Sort : Most recent post
  • Most recent post
  • Most recent thread
  • Total votes
  • Total replies
  • large check mark
    0 Votes

    Sort a table with two columns based on the first

    Scripting
     > 
    Windows PowerShell
    I have a powershell table with the columns 'Used Perc' and 'ID'. This was formed from the following  $a = ...
    Answered | 6 Replies | 95 Views | Created by matt99199 - Wednesday, December 03, 2014 5:15 PM | Last reply by AnnaWY - 11 minutes ago
  • large check mark
    10 Votes

    Please help me with this "2012 R2" PS Script

    Scripting
     > 
    Windows PowerShell
    Please be kind to help me with this Script. Thank you..... Import-Csv C:\Scripts\NewADUsers.csv | foreach-object { $userprinicpalname = $_.SamAccountName + ...
    Proposed | 19 Replies | 150 Views | Created by ArunaJaya - Thursday, December 04, 2014 11:19 AM | Last reply by AnnaWY - 37 minutes ago
  • large check mark
    0 Votes

    ActiveSync PowerShell Script

    Scripting
     > 
    Windows PowerShell
    I tried asking this question in another technet forum but go no answer .. so here it goes again I am trying to put a script together that will allow for me to ...
    Unanswered | 0 Replies | 17 Views | Created by J-Virtual - 41 minutes ago
  • large check mark
    0 Votes

    Teaming NIC

    Scripting
     > 
    Windows PowerShell
    I am trying to script TeamingNic started with a  $arrNic = Get-NetAdapter -Physical | where status -EQ 'up' | select-object name the idea ...
    Unanswered | 2 Replies | 56 Views | Created by Ogeccut - 3 hours 41 minutes ago | Last reply by Brian Nadjiwon - 2 hours 41 minutes ago
  • large check mark
    0 Votes

    Can't pass a argument to Powershell ISE

    Scripting
     > 
    Windows PowerShell
    Hello, in my powershell  ISE shell window,  I type :    .\myscript.ps1 "my value" The first line has a break point  : ...
    Unanswered | 4 Replies | 51 Views | Created by peter clift - 3 hours 54 minutes ago | Last reply by Brian Nadjiwon - 2 hours 59 minutes ago
  • large check mark
    0 Votes

    PS Script To Rename File Using CSV - Filename Is Containing IP Address And Needs To Be Host Name

    Scripting
     > 
    Windows PowerShell
    Hello All, I am currently working with PDF reports which are named "TEMXX.XX.XXX.XX_141215.pdf", XX.XX.XXX.XX is an IP address. I have created a CSV which contains two ...
    Unanswered | 0 Replies | 161 Views | Created by JayJayTech - 4 hours 32 minutes ago
  • large check mark
    15 Votes

    Executing powershell scripts via Task Scheduler

    Scripting
     > 
    Windows PowerShell
    Hi, I have a powershell script that I wrote that when executed from the shell works fine but when executed from task scheduler does not work. In my script, an ...
    Answered | 14 Replies | 60928 Views | Created by GregLyncs - Tuesday, April 10, 2012 7:17 PM | Last reply by Johnny4vt - 4 hours 47 minutes ago
  • large check mark
    1 Votes

    Help needed with a PS script for network share documentation

    Scripting
     > 
    Windows PowerShell
    I found a nice PS script that will do what I want, however the output portion seems to be broken. It will output the permissions and details, but not list what share it is referring to... Can anyone ...
    Proposed | 8 Replies | 95 Views | Created by Joshua N - 10 hours 26 minutes ago | Last reply by jrv - 5 hours 48 minutes ago
  • large check mark
    0 Votes

    on powershell and gpo

    Scripting
     > 
    Windows PowerShell
    I was given a huge tasking and I'm reeling on how to accomplish it. My issue is this. I have been tasked on going through and gathering all information on all the gpos on all of our ...
    Unanswered | 2 Replies | 75 Views | Created by planteyes - 6 hours 8 minutes ago | Last reply by jrv - 5 hours 49 minutes ago
  • large check mark
    7 Votes

    Truncate each line in a file to a specific number of characters

    Scripting
     > 
    Windows PowerShell
    I've been tasked with writing a script that will massage data in a file that goes to a mainframe. The mainframe job is static and can't be modified. The file needs to be capped at 80 characters per ...
    Answered | 13 Replies | 157 Views | Created by zarberg - Monday, December 08, 2014 7:24 PM | Last reply by zarberg - 5 hours 51 minutes ago
  • large check mark
    2 Votes

    Import-CSV to bulk Update AD Attributes

    Scripting
     > 
    Windows PowerShell
    Hello, I am trying to import a csv to do some clean up on some AD account’s. My question is similar to this ...
    Unanswered | 7 Replies | 112 Views | Created by Rthornburg - 8 hours 50 minutes ago | Last reply by clayman2 - 6 hours 42 minutes ago
  • large check mark
    0 Votes

    Moving AD groups to new OU

    Scripting
     > 
    Windows PowerShell
    I am trying to move about 200 AD groups to a new OU. Is there anyway someone can help me with a script to use in powershell to get this done.
    Unanswered | 3 Replies | 170 Views | Created by Rosheik - 10 hours 9 minutes ago | Last reply by Mike Laughlin - 6 hours 59 minutes ago
  • large check mark
    0 Votes

    are jobs faster than foreach?

    Scripting
     > 
    Windows PowerShell
    Hi, I have a search script that goes on multiple servers and enumerates files, then looks through each file and looks if the prt name matches. Now i am trying to make it faster, and the first attempt ...
    Unanswered | 5 Replies | 91 Views | Created by ImMax - 10 hours 21 minutes ago | Last reply by Stephen Owen - 8 hours 16 minutes ago
  • large check mark
    1 Votes

    Powershell script or command to Import AD USers with GUID

    Scripting
     > 
    Windows PowerShell
    I need to import few users with their GUID's from our Training domain to Production domain. Our requirement is Users need to login their existing pc's local profile, once they move ...
    Unanswered | 5 Replies | 114 Views | Created by Don Sujith - Thursday, December 11, 2014 4:18 AM | Last reply by Jordan Mills - 9 hours 28 minutes ago
  • large check mark
    0 Votes

    Query not returing Exchange server name

    Scripting
     > 
    Windows PowerShell
    I am running the following command to retrieve the status of a process. I am using get-exchangeserver to list all the Exchange servers to run get-process. In addition to returning the services which ...
    Unanswered | 1 Replies | 52 Views | Created by CMR NYC - 12 hours 49 minutes ago | Last reply by jrv - 9 hours 30 minutes ago
  • large check mark
    1 Votes

    help needed with logical Expression

    Scripting
     > 
    Windows PowerShell
    Hi Everyone, I have a CSV file with few columns SamAccountName,office,Company,Department I want the logic to update user details with above information ...
    Unanswered | 7 Replies | 86 Views | Created by STscripter - 14 hours 39 minutes ago | Last reply by jrv - 9 hours 41 minutes ago
  • large check mark
    0 Votes

    using dfsr commands remotely

    Scripting
     > 
    Windows PowerShell
    I have a need to execute dfsr commands like 'Get-DfsrConnection' against a computer remotely. Running locally on a Windows 2012 R2 server works fine, but issuing the command via 'invoke-command ...
    Unanswered | 6 Replies | 155 Views | Created by xjdan89 - Wednesday, December 10, 2014 8:18 PM | Last reply by xjdan89 - 9 hours 44 minutes ago
  • large check mark
    0 Votes

    Query SQL and output to text file then loop through list to execute

    Scripting
     > 
    Windows PowerShell
    It seems there's no obvious way to do what I want to below as everyone has their own take on querying SQL server with Powershell! I need to use PowerShell to connect to ServerA and ...
    Unanswered | 5 Replies | 67 Views | Created by MJ2012 - 14 hours 57 minutes ago | Last reply by jrv - 9 hours 50 minutes ago
  • large check mark
    0 Votes

    Distribution Group Membership - Find and Replace.

    Scripting
     > 
    Windows PowerShell
    Hello, I am looking for a way in Powershell to return the distribution groups that a user is a member of. Using that information I'd ideally like to replace that user with another, ...
    Unanswered | 8 Replies | 80 Views | Created by Niall Ald - 10 hours 53 minutes ago | Last reply by Mike Laughlin - 10 hours 5 minutes ago
  • large check mark
    0 Votes

    Archive previous Windows System logs (event viewer)

    Scripting
     > 
    Windows PowerShell
    ex Dec14 2. copy all the previous day system events and export to UNC path--> ex: \\NASstorage$\SYS Logs\Server1-14-12-14 PS: once copy ...
    Unanswered | 1 Replies | 51 Views | Created by Billvel - 10 hours 57 minutes ago | Last reply by jrv - 10 hours 25 minutes ago
  • Items 1 to 20 of 16790 Next ›
Announcement: 2

Windows PowerShell announcement

  • Link
    Local and virtual PowerShell user group listing
    Marco Shaw Friday, March 05, 2010 9:04 PM
    Find a PowerShell user group here: http://powershellgroup.org/
  • Link
    Marking questions as answered
    Marco Shaw Friday, February 26, 2010 2:22 AM
    Quite often, some users will be provided with a solution, yet won't mark the thread as answered.  The moderators of this forum will try to review almost every thread/answer, and may prematurely mark a thread as answered, when it isn't.  In cases like those, the original poster can feel free to unmark the thread as answered.

Microsoft is conducting an online survey to understand your opinion of the Technet Web site. If you choose to participate, the online survey will be presented to you when you leave the Technet Web site.

Would you like to participate?

  
Privacy statement
 
© 2014 Microsoft. All rights reserved.
Newsletter|Contact Us|Privacy Statement|Terms of Use|Trademarks|Site Feedback
  • TechNet
  • Products
  • IT Resources
  • Downloads
  • Training
  • Support
Products
  • Windows
  • Windows Server
  • System Center
  • Internet Explorer
 
  • Office
  • Office 365
  • Exchange Server
 
  • SQL Server
  • SharePoint Products
  • Lync
  • See all products »
Resources
  • Curah! curation service
  • Evaluation Center
  • Learning Resources
  • Microsoft Tech Companion App
  • Microsoft Technical Communities
  • Microsoft Virtual Academy
  • Script Center
  • Server and Tools Blogs
  • TechNet Blogs
 
  • TechNet Flash Newsletter
  • TechNet Gallery
  • TechNet Library
  • TechNet Magazine
  • TechNet Subscriptions
  • TechNet Video
  • TechNet Wiki
  • Windows Sysinternals
  • Virtual Labs
Solutions
  • Networking
  • Cloud and Datacenter
  • Security
  • Virtualization
Updates
  • Service Packs
  • Security Bulletins
  • Microsoft Update
Trials
  • Windows Server 2012 R2
  • System Center 2012 R2
  • Microsoft SQL Server 2012 SP1
  • Windows 8.1 Enterprise
  • See all trials »
Related Sites
  • Microsoft Download Center
  • TechNet Evaluation Center
  • Drivers
  • Windows Sysinternals
  • TechNet Gallery
Training
  • Training Catalog
  • Class Locator
  • Microsoft Virtual Academy
  • Free Windows Server 2012 courses
  • Free Windows 8 courses
  • SQL Server training
  • e-Learning overview
Certifications
  • Certification overview
  • MCSA: Windows 8
  • Windows Server Certification (MCSE)
  • Private Cloud Certification (MCSE)
  • SQL Server Certification (MCSE)
Other resources
  • TechNet Events
  • Second shot for certification
  • Born To Learn blog
  • Find technical communities in your area
Support options
  • For small and midsize businesses
  • For enterprises
  • For developers
  • For IT professionals
  • From partners
 
  • For technical support
  • Support offerings
  • For home users
More support
  • Microsoft Premier Online
  • Microsoft Fix It Center
  • TechNet Forums
  • MSDN Forums
  • Security Bulletins & Advisories
  • International support solutions
  • Log a support ticket
Not an IT pro?
  • Microsoft Customer Support
  • Microsoft Community Forums