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

powershell script using Net.Mail.SmtpClient not working for my email vendors...

I can use some other tools to send emails (like http://glob.com.au/sendmail/ for example), but for some reason I can't send emails with Net.Mail.SmtpClient.I am using the same settings as I have...

View Article


Get Remote Desktop access logs using PowerShell

How to find all login/Logout/Reconnect and other log information from a remote computer using powershellThis should also include from which client/machine (including which account) that connection has...

View Article


How to move all files from a folder for a user to a centralized folder on a...

Hello,I'm curious if there is a batch file that can be made to move the contents that are setup like this....I'm having to redo a TS cluster and I'd like to make a batch file script that can be...

View Article

Copying Files with Excluding Files without an extension

I'm blanking out on this one.  How can I copy files that only have an extension?  (Windows 2008R2/Windows7)Is Powershell my only route?  Seems like there should be an easier way to do this.

View Article

How do i create a directory in powershell

How do i create a directory in power shell

View Article


vb script to read txt file and excute icacls

HiI have a big list of usernames with exclusive folder permissions that i need to reset.Can someone help create a vs script to read each line in the txt file and run:icacls...

View Article

Password expiry notification!

Experts out there !I am running the below script to send out email notification to all AD users whose password is going expire (mainly for the remote users who do not login to domain), below script...

View Article

Problem installing printers with VB

Hello All,I hope you guys can help me with a problem i have. For a customer we are trying to install printers via a script executed at login. We got it working on 32 bits workstations, but i wont work...

View Article


WSF multiple scripts start? Newbie question

So I have a script that is called within a VB app. When I let it run alone, there is no problem. However, when I start to click around in Windows, several instances of the script fire. I end up going...

View Article


Image may be NSFW.
Clik here to view.

Powershell - find if a value is present

Hi,I'm writing a DHCP migration tool in powershel, but struggling with one of the options. Here is the scenario:I want to copy over all server option from the source server to the destination server....

View Article

Diskpart /s script.txt not working - invalid commands?

Hi,I've written a small PowerShell script which is intended to write a Diskpart script dynamically, execute it and report the results. I'm intending to roll the script out via SCCM in order to resize a...

View Article

Can the Get-DFSRBacklog PowerShell script be used on the Windows Server 2012...

Hello experts,I have setup DFSR between two Windows Server 2012 servers a few months ago and I recently ran into issues with files not being copied and missing files.It is my understanding that there...

View Article

Set Primary DNS Suffix Using Powershell

For a Windows Server 2012 installation, what Powershell cmdlet can be used to change the Primary DNS Suffix ? I've tried using 'Set-DnsClientGlobalSetting -SuffixSearchList contoso.com' but this only...

View Article


file present if/else

I would like to put commands in a batchfile to see if Office 2010 standard or pro is installed. If not install Office.The question for beneath batchfile is: can i put the if and else as it is on one...

View Article

Allow Dial-In for local user

Hi all, I need to create 50+ local user accounts in a stand alone windows server 2008 r2 (not member of domain, just installed role for VPN),  I have PowerShell script that creates users and passwords...

View Article


Copying Files while Excluding Files without an extension

I'm blanking out on this one.  How can I copy files that only have an extension?  (Windows 2008R2/Windows7)Is Powershell my only route?  Seems like there should be an easier way to do this.

View Article

PS script to export OUs and Users in DC to text file

I need to export OU with the users and the settings in a DC Win server 2003 to a text fileAnyone can help me?Thank You

View Article


Powershell: Stopping active defrag

Ok, so I can start up a defrag in powershell, but if after 'x' period of time it's not done, is there a graceful way to kill the active defrag?  I can do a returnvalue at said interval to get current...

View Article

Convert CSV to XML

Im having a formatting issue with the following code, for some reason the source CSV file format is not being maintained, for example if i have 10 columns labeled "name1, name2, ...., name10" and i run...

View Article

Can you base a permanent event comsumer on an extrinsic Event Class without a...

We have a WMI provider that fires an event for system changes we care about.  The PowerShell Register-WMIEvent with the "-class" option works just fine for setting up a temporary event subscriber. I've...

View Article
Browsing all 15028 articles
Browse latest View live


Latest Images

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