Quantcast
Channel: The Official Scripting Guys Forum! forum
Browsing all 15028 articles
Browse latest View live

MSCluster.Cluster Classes not registered in windows 2012

I don't see mscluster.cluster class in windows2012 after cluster build but same I get in windows2008 ,my code started failing due to that,example below , can somebody point out why classes are missing...

View Article


I need to get the cluster information using"MSCluster.Cluster" object

Hi,Please anyone solve my problem ? I need to get the cluster information using"MSCluster.Cluster" object.Set objCluster = CreateObject("MSCluster.Cluster")objCluster .open <clustername>If i run...

View Article


PowerShell Test-connection and Active Directory Input

I am just learning powershell, and I"m working to write a script that pulls computer names from AD and puts them into a Test-connection cmdlet to determine if its valid.clear-host import-module...

View Article

Problem Setting Variable

I have started learning PowerShell but I am still fairly inexperienced.  The other night I was curious about how to display a simple dialog box using PowerShell, and I came across the two articles...

View Article

Image may be NSFW.
Clik here to view.

Mapping a user's home drive via ps1 script/function - shows success but drive...

Hello, due to more people teleworking this time of year an issue has been noticed and brought up that when connecting to our VPN the network drives are all there except for the home drive. I have...

View Article


PowerShell Export-CSV When Source Object Contains Both Strings And Collections

My goal is to process the data inside a bunch of XML log files.  I would like to get them into CSV format so that end users can easily view them in Excel.First, I store all the data in a variable...

View Article

E-mail notification using powershell script in 365

I need a e-mail script that works using 365. Here is what I have so far and I cant get it to work.Function EMAIL{ Param( $emailSmtpServer = "XXXXXXXXXXX", $emailSmtpServerPort = 587, $emailSmtpUser =...

View Article

When I use the send-mailmessage and do -credential how to get my password in...

I would like to automate this send-mailmessage to send without having to type in credentials? -credential noreply@XXXX.com

View Article


Unable to get lastLogonTimestamp value from New-Object PSObject

I have the following code in a ForEach loop to log output to a CSV file but am having trouble getting it to populate thelastLogonTimestamp values... the output just comes out blank.  All the other...

View Article


Powershell - Trimming the first 10 characters from a text file and replacing it

Hi Everyone,Does anyone know how to trim the first 10 characters from a text file and then append the replacement in its place?Example: Lets say that on the first line of text which could be a random...

View Article

Exchange 2007 - Get-LogonStatistics need to get primarysmtpaddress

I need to pull in primarysmtpaddress to Get-LogonStatistics.  Here's what I have so far:Get-Mailbox -ResultSize unlimited | Get-LogonStatistics | Select UserName,ClientVersion,LastAccessTime,ServerName...

View Article

Windows 8.1 AutoRotate Powershell Script

Hello,I'm trying to write a script that will turn on and off the autorotate feature on the Windows 8.1 Tablet.  I have the commands below that seem to work, but since I'm modifying registry keys, the...

View Article

CMD Window is not closing automatically after the command executes in a batch...

I have a problem with the DOS window not closing when executing parametric.bat in a script.  Creo Parametric 2.0 is the latest version of CAD software from PTC.  I did not have the issue of the DOS...

View Article


Need VB script for getting the IIS certification information

Hi guys,I have totally 1000 IIS servers  2003 & 2008windows and some of the  servers configuredIIS 3rd party Security certificates. I need a script to get the certification information like expiry...

View Article

Having trouble executing powershell scripts through MMC taskpad

I have created a taskpad that executes multiple powershell scripts. Each script uses the selected ActiveDirectory group name attribute as a parameter in the command line options. I can account for...

View Article


Export Available Important Windows updates to Excel File

Hi,I want to export List of Important Windows updates available in Windows Updates to excel or csv file by using CMD. I don't have any WSUS server deployed. I want to do this by using CMD command....

View Article

[PS] Cycling through console input history after importing history

Hallo fellow scripters,What I'm trying to do I'm trying to add a functionality to PowerShell that allows me to import the command history of a PS User and actually adds these commands not merely to the...

View Article


Powershell - How do you clear a variable from memory to verify a change that...

Hi Everyone,Does anyone know how to clean up after a variable value that is in memory, in order to view the current change?Example: i changed a value in the properties of a folder, but when i call onto...

View Article

Encountered unmappable character error in powershell

Hi,I am using a following cmdlets to get all the machines information from AD of our domain. After running this script i get only few machine around (10 % of total machine in AD).Error - An error pops...

View Article

how to send email using formatted excel worksheet as email body ?

Hi there,does anybody know how to adjust this below code to use formatted excel worksheet as body content email ?thanksAdd-PSSnapin Microsoft.Exchange.Management.Powershell.Admin -erroraction...

View Article
Browsing all 15028 articles
Browse latest View live


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