4
votes
1answer
32 views

My PowerShell $profile path has no $HOME prepended

I have PowerShell installed on two different Server 2008 R2 systems. On one system, $HOME is prepended to $profile, but on the other nothing is prepended: Server 1 (PowerShell 2) PS C:\> echo ...
1
vote
0answers
26 views

Get-MaskingSet in PowerShell 2.0

I'm trying to retrieve the current masking sets using PowerShell 2.0 on a Windows Server 2008 R2. Unfortunately, the cmdlet Get-MaskingSet does not exist under this PowerShell version. Are there any ...
3
votes
2answers
83 views

Email results of PowerShell Script

I have a powershell script that check the certificate store for expiring certificates. It will display these results within the CLI. I want to modify this script to email the results of the output in ...
1
vote
3answers
208 views

How can I disable a scheduled task using Powershell?

I have a web application that runs on Windows Server 2008 R2, which has a large number of scheduled tasks which take care of all the backend stuff. When I do a software deployment which touches the ...
0
votes
1answer
23 views

Powershell waiting for more parameters when asking for all users from a specific OU?

I want to get all the users from OU "myusers" so I have this cmdlet right here: get-aduser -filter * -searchbase"ou=myusers,dc=domain,dc=com" But when Im running it, powershell prints a >> ...
2
votes
1answer
56 views

How to set RDS security layer in Windows Server 2008 R2 via PowerShell

I'm looking for a way to set security layer setting in Windows Server 2008 R2 RDS via PowerShell (other ways to do in programmatically will do also but PowerShell is preferable). Via GUI it can be set ...
3
votes
2answers
172 views

How can I create a windows shutdown script from powershell/command-line?

I've read the TechNet pages that describe using computer/user startup/shutdown scripts, and that's great, but I'd like to create those scripts via the command-line (and not have to click around in ...
4
votes
2answers
91 views

How can I assign IPv6 addresses based on existing IPv4 addresses?

I have several hundred Server 2008 R2 machines with static IPv4 addresses. I'd like to enable IPv6 on each interface, and then automatically assign IPv6 addresses to them based on their existing IPv4 ...
1
vote
1answer
50 views

Difference between isntalling a msi using “Invoke-WmiMethod”(via a cmd file) and installing directly on the server

Ran against a server to install the msi; eventlogs were clean and all success; but the key file in bin direstory is still old. Later tried installing it directly doing a double click by RDP into the ...
2
votes
1answer
75 views

Windows 2008 Server R2 Command Prompt/Power Shell Slow Scrolling

I'm having an issue with various Windows 2008 Server R2 machines scrolling very slowly using the command line or Power Shell. For instance, if I type "dir", I see my contents being displayed 1 line at ...
0
votes
0answers
30 views

ACL PS Script - hangs on 08 R2 PS v3; works fine on W8 PS v4

This script was designed to make application of permissions to a new server much easier. It is not doing that currently :( For some reason it works just fine on my Win 8 machine, where I made it. ...
0
votes
1answer
55 views

New-ADUser -Path syntax?

Where can I find a detailed explanation of the -Path parameter of the New-ADUser command? I want to specify a rather detailed path without calling Set-Location many times to specify where I want the ...
3
votes
1answer
760 views

How to Export a Registry HIVE (NTUSER.DAT) in PowerShell

In order to resolve a registry bloat issue caused by Samsung Print Drivers I'm needing to find a way to Export a user's Roaming Profile NTUSER.DAT Registry Hive while in PowerShell. Loading and ...
4
votes
2answers
233 views

How do I identify a volume in WMI from a volume name reported in the event log?

I have a Windows 2008R2 server that's reporting the following error: The file system structure on the disk is corrupt and unusable. Please run the chkdsk utility on the volume ...
0
votes
0answers
189 views

ldifde command is failing with "Invalid Parameter: Bad argument '-i'. And also any equivalent PS Cmdlet?

OS - Windows Server 2008 R2 Localhost: DC as well as running an AD LDS instance Here are the command(s) I used: ldifde -i -u -f differences.ldf -s localhost:50004 -b myUserAccount MyDomain ...
2
votes
1answer
416 views

How to resolve powershell Error Internal Windows powershell error. Failed 80070002

I have a Windows 2008 R2 SP1 server with all current windows updates. I am attempting to run powershell but it gives the following error: Internal Windows PowerShell error. Loading managed Windows ...
1
vote
1answer
80 views

Unregistered a computer with the domain controller using powershell?

From what I understand when you add a computer to the domain, via Computer->Properties->Advanced system settings->System Properties->Computer Name->Network ID, it gets registered with ...
2
votes
2answers
736 views

Adding a DNS A record to a Win 2008R2 server from an Win 2008R2 server or Win7 via Powershell

I recently discovered that it is possible to simply automate DNS entry administration with a nice cmdlet: Import-Module DnsServer Add-DnsServerResourceRecordA -Name mail2 -IPv4Address 192.168.0.10 ...
3
votes
1answer
604 views

Scheduled Task to run 32-bit PowerShell Script with 3 Arguments

TL;DR Version I need to run a 32-bit PowerShell script that takes three arguments as a scheduled task in Windows Server 2008 R2. The script starts a FileSystemWatcher, so I need to keep it alive so ...
3
votes
3answers
1k views

Export all hosts from DNS Manager using Powershell

While I'm rather new to powerShell v3, there's some things I can do with it, however, one thing that has eluded me is how to pull all hosts listed in our DNS Manager (Server 2008 R2). I don't need to ...
3
votes
1answer
76 views

Launching Installer Via Powershell and WinRM and Nothing Happens

I'm currently working on a Powershell script to run some Microsoft Hotfix installers remotely on several Windows Server 2008 R2 servers that I manage. Basically, the script copies all the appropriate ...
0
votes
0answers
66 views

“-STA -WindowStyle Hidden” Option not working with citrix

i have a powershell application published to citrix. It simple executes a remote batch file Initiator.Bat which then executes apowershell script with following command, Powershell ...
1
vote
1answer
534 views

Sending unauthenticated mail through MS Exchange with powershell (Windows Server 2008 R2)

I'm trying use Task Scheduler to run a powershell script and emails the output of a few commands. I'm using "Send-MailMessage" to do this. When I run the scheduled task with a domain admin account, I ...
1
vote
0answers
606 views

Exchange (2013) Powershell Connection Error

I am using Windows 2008 R2 with Exchange 2013 I am trying to connect to my exchange server with the following command but receive an error each time: $session = New-PSSession -ConfigurationName ...
2
votes
3answers
866 views

Add user account to local Administrator group on multiple Windows Server 2008 machines

I have a number of servers to which I need to grant administrative access to 1 particular user, i.e. add him to local admins. I guess it can be scripted with PowerShell or somehow else.. Can somebody ...
1
vote
1answer
270 views

IIS Powershell : Assign an existing SSL binding to a website

I already have an SSL binding created for one of my websites in IIS 7.5. Now I'm adding another website which listens on the same IP and port (443) but uses a different host header. When I try to ...
4
votes
2answers
340 views

How to get from a Hyper-V 2008 R2 node with Powershell the IP address and Vlan ID

I tried to take from the Hyper-V (Hyper-V 2012) node with this command the IP address: Get-VM | select -ExpandProperty networkadapters | select vmname, ipaddress The thing is that i take as an ...
2
votes
1answer
176 views

Cannot Create InboxRule on one individual mailbox

This one user when trying to create a rule through outlook throws the generic "One or more rules cannot be uploaded to Microsoft Exchange and have been deactivated. This could be because some of the ...
5
votes
2answers
321 views

Erroneous Tasklist.exe

I’m currently managing a Citrix-farm system based on Windows Server 2008R2. In the past, I had used a Powershell script to check for running user-processes and restart them if necessary. I used the ...
0
votes
3answers
401 views

Enable-PSRemoting on Windows Server 2008 R2 error

When giving the command Enable-PSSRemoting with or without the -Force parameter this error occurs Set-WSManQuickConfig : More data is available. At line:50 char:33 + Set-WSManQuickConfig ...
0
votes
0answers
65 views

Bulk load remote domains with TLS into iis 6 SMTP

I manage a set of SMTP servers used for sending emails for a few of our applications. I found out from one of our clients today that I need to add 80 domains for TLS support. This is required to ...
3
votes
2answers
662 views

Delete Shadow Copies Remotely

I currently use DISKSHADOW to remove shadow copies from our Hyper-V servers. To do this I have to log onto the server but psexec doesn't work. psexec \\hyper-v-server diskshadow DISKSHADOW> Error ...
1
vote
1answer
767 views

SchTasks giving out error (0x1) on Windows 2008 R2

i have a powershell script which creates scheduled tasks as a part of automation process and my syntax is following; schtasks /create /s ServerName /u $username /p $password /ru $username /rp ...
0
votes
2answers
536 views

Move-ADObject errors upon taking CSV-file input

Hoping you can help! Where I work, when we create a user, the object is put in "CN=>User's full name<,OU=Something1,OU=Something2,DC=SomethingElse,DC=local". From there the user object needs to ...
0
votes
2answers
812 views

Get-ADGroupMember returns nothing while being completed successfully

I've tried to list all of the members of one of the groups in AD, but nothing is returned, although the command is completed successfully. It neither works with group DN specified, instead of ...
7
votes
3answers
373 views

AD reset user passwords for a security group

I'm not quite sure if this is possible or not, but I need to force a certain security group's users to have their passwords expire so they'll be forced to change them on next login. The reason for ...
2
votes
3answers
970 views

Sever 2008 R2 Powershell Script runs manually, but not as a scheduled task

I have a Powershell script that runs manually using the Powershell ISE; However, when run as a scheduled task using an administrator's credentials the task does not run with the expected results. The ...
0
votes
1answer
220 views

Powershell “ExpandProperty” doesn't work when saving to CSV output

How do I expand the $thisPerms = Get-Mailbox username -ResultSize unlimited Get-ADPermission $thisPerms.Identity | Where {$_.ExtendedRights -like "Send-As" -and $_.User.ToString() ...
4
votes
1answer
341 views

PowerShell: Copy-GPO failing with HRESULT: 0x8007000D

While trying to run the Copy-GPO cmdlet to copy a Group Policy Object using a predefined Migration Table I am receiving this exception: System.Runtime.InteropServices.COMException (0x8007000D): The ...
0
votes
2answers
388 views

Powershell backup log to csv

Hi I have learned a short command to create a CSV from the backup log on my server. I have 5 of them and I wonder if there is a way to show their result in a website format on one pages. The whole aim ...
1
vote
1answer
255 views

Use PowerShell to edit a remote file on a Windows 2008 Server

Editing a file on a remote linux server via SSH and vim is something I usually do on a regular basis. Recently, I got on a new web project involving Microsoft technologies instead of the usual open ...
1
vote
1answer
268 views

Toggling enabled/disabled on specific triggers in a task in the task scheduler using powershell (or something else)

Related to this question: Windows Server in UTC, need Task Scheduler to shift tasks with summer time and this question: ...
3
votes
1answer
156 views

Discrepancy between Event Log taken from Powershell and with Event Log Viewer

Domain Controller OS - Window Server 2008 R2 Please see the First PrintScreen attached (Powershell.png). with the help of Powershell command I am trying to check the event Log of my DC. Please note ...
1
vote
2answers
316 views

How do I write a powershell script to install RDS-RD-Server role?

I assumed I would just put the following in a filename.ps1 named file and run it like: powershell.exe -noexit 'filename.ps1' It runs, but it's not doing anything. Inside the filename.ps1 I have ...
5
votes
1answer
648 views

How can I get the “description” attribute of an OU in ActiveDirectory?

I'm working on a set of script that will be used to migrate the users and structure from one active directory to another. For this, I'm using the Get-ADOrganizationalUnit commandlet to export the OUs ...
0
votes
1answer
48 views

Commands to manage services and applications in a failover cluster

There is a pretty decent suite of Powershell commandlets for managing Microsoft Failover Clusters, including commands for starting and stopping nodes. However, I am interested in the equivalent ...
2
votes
2answers
338 views

powershell call operator with multiple arguments?

I am trying to use the powershell call operator to essentially run the following command: "C:\Program Files (x86)\PuTTY\plink.exe" "-v -agent -m C:\Scripts\idrac_powerup_commands.txt ...
2
votes
3answers
781 views

Permissions Issue? Putty + Plink + Pageant + Powershell + Scheduled Task

Background I have the following components: A windows server 2008 R2 box An administrator account (mine) A service account on the domain that is an Administrator of the box An installation of ...
0
votes
1answer
193 views

Powershell error when adding filepath

The script looks like this: $searchOU='ou=Servers,dc=mydomain,dc=NET' Get-ADComputer -filter * -SearchBase $searchOU | Foreach-Object { $server = $_.Name ...
0
votes
2answers
1k views

Powershell - How to find who is a local administrator on the servers in Active Directory

I would like some help to merge these two scripts, the first one I've made myself the other one is borrowed. How do I get these scripts merged, so I can get list of all the servers and of all members ...