Quantcast
Browsing all 21975 articles
Browse latest View live

How to get list of all local profile sizes in domain

I'm planning to switch most of the users at my company over to thin clients in a terminal server environment and I'm trying to calculate how much disk space I will need on my SAN for their profiles...

View Article


Comparison operators and test-connection vs System.net.DNS

I have a script that gets a list of computers from AD (using get-qadcomputer), and then foreach object will use the test-connection cmdlet. It will then take the IPV4address property and run that...

View Article


interaction between elevated PS session and non-elevated processes

Mighty all, I'm trying to leverage the following code to interact with instances of powerpoint running on a system[Runtime.InteropServices.Marshal]::GetActiveObject('Powerpoint.Application')All works...

View Article

drop last line of each file processed

  Is there a way as i;m processing files can I drop the last line of each file before I write it? The last record in each of files I process is a total record which I don't want to include in my final...

View Article

Retrieve event log entries from remote PC?

I need to retrieve the top N "Application" event log entries for a given remote machine.  Specifically, I need the Time, Source, and Message (non-truncated) column outputs.  How best to do this?thanks

View Article


The WinRM client cannot complete the operation within the time specified.

Hi,I'm trying to run a powershell script on a Virtual Machine remotely (From the Hyper-V host).Here is the powershell script:Enable-PSRemoting -force $TestAdminCred1 = New-Object...

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 created...

View Article

Skip the 6 last lines of the TXT file

I have many TXT files (originally CSV files) like...

View Article


Determine if policy is applied to remote PC using gpresult

I am still learning Powershell (after using vbscript for many years) and still trying to wrap my head around different ways of doing things.  Right now, I am working on a script to parse the output...

View Article


Help parsing output of log file

Hi there, not very strong with powershell however I have pieced this together so far..The output of the code is..WORKSPACE#11.1.2.0] admin 3/13/14 5:04 PM WORKSPACE#11.1.2.0] admin 3/13/14 5:14 PM...

View Article

How can get value of registry DWORD value of remote computers with powershell

HII am using below script to get registry of remote computers with powershell but not desired result. $computers = Import-Csv 'C:\New folder\dclist.csv' $key = "SOFTWARE\Microsoft\Active...

View Article

List all folders only if there are no lower level folders or files

I have a simple query that lists all folders recursively that do not contain any files within them.  I also need to filter it so that it only lists folders that also do not have any sub-folders.   The...

View Article

1..5|.{process{$_ * 2}} # what is this exactly?

What is the difference between these two PowerShell statements?  The first used the ForEach-Object cmdlet in a way that I'm used to by now, but the second is something new to me.<#c:#>...

View Article


[Forum FAQ] Introduce Windows Powershell Remoting

This article will introduce three methods of Windows Powershell Remoting:Method 1: WMIRemoting Cmdlet: Get-WMIObjectProtocols: WMI/RPC/DCOMPort: Random portData Encryption: Clear textNote: No need of...

View Article

Assistance with bringing two scripts together

Hello,I have the following script that will successfully give me the IP address, DNS, Netmask, MAC Address etc for my VM's.  I want to add to this script the following:To show free space for each drive...

View Article


Creating Virtual Directories in IIS 7 and Converting to a folder to Web...

I have got the basic understanding of creating a IIS Website through Powershell. Now I am having a problem with the following; - I need to create a virtual directory that has the connect as option, so...

View Article

Exception calling "Find"

I have a script that does a nice check to see if two groups belong to admins group on each server.It kind of works apart from , if there is a server is the list that in no longer in AD , it returns the...

View Article


wait for user input

HiWhats the powershell command to pause the script and the script continue as soon as use hit enter?

View Article

WSUS Client Set up Non Domain

Hello,I would like some help in finding out the best method to configure non-domain windows operating systems on a WSUS server. I test various systems that may include a windows home operating system....

View Article

Image may be NSFW.
Clik here to view.

Error cannot load windows powershell snap-in coexistance-configuration -...

Hi I have a powershell script on Windows Server 2008 R2 that will force the directory synchronization. I am trying to run C:\Program Files\Windows Azure Active Directory Sync\DirSyncConfigShell.psc1...

View Article
Browsing all 21975 articles
Browse latest View live


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