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

Image may be NSFW.
Clik here to view.

How to Perform Forced Manual Failover of Availability Group (SQL Server) and...

I have a scenario with the three nodes with server 2012 standard, each running an instance of SQL Server 2012 enterprise, participate in asingle Windows Server Failover Cluster (WSFC) that spans two...

View Article


Disappearing HTA

I have this simple little HTA that I put together to basically verify a machine is on-line, determine who is logged in and then ask if you want to launch Remote Assist.  I like to keep this open on my...

View Article


Script to change DN attribute in AD to be the same as sAMAccountName

Recently I was asked to change the Display Name for all the users in AD in my organization.  I was asked to do so because the previous AD/Exchange Admin created all accounts using the default of...

View Article

Having Problems with Importing / Exporting to a CSV

I am in need of a Powershell script that will check a list of machines for 2 specific values in an XML file.  I am not sure where I am going wrong ( a bit new to Powershell) and could use an extra set...

View Article

Powershell SMO SQL Server Mirror Databases

Hello,I am almost done writing a script to help my team manage mirrored database during planned outages.  I would like to do determine the role of the database (principal or mirror). If I query atheDMV...

View Article


Logon name required

I have a legacy email list given to me and it contains email address only in text document.I need to use this information to export logon name from AD out to text or csv file so I can then use this...

View Article

How can I remove files that do not contain the number 1 or ~1?

I had to convert many .avi files.  The new names all contain ~1.  Those files I want to keep and remove the originals.  There are scripts to remove files with a numeral such as 1.  I need one to remove...

View Article

Datatable updating

How do I update a datatable ?for ($i=0;$i -le $datatable.rows.count;$i++) {   $therow=$datatable.rows[$i]  $therow.Servername = $SQLServer }but there is some problem .. Property 'Servername' cannot be...

View Article


Invoke-Command Connect to remote server failed

Hello,Ican notsolve the problems launchscriptviaInvoke-Command.PSRemoting on remote (target) host is enabled by:Enable-PSRemoting-ForceSet-Item wsman:\localhost\client\trustedhosts*-ForceInvoke-Command...

View Article


Adding "Wscript.echo" in place of Report.txt in VBS?

Hi, This script gets remote user's membership info and saves a report.txt as a result. Can this code be changed with wscript.echo in place of Report.txt I tried to change it but i couldnt :( Thank...

View Article

Email notification, warn about Account Expiration date

Hi script-geniuses! We set up bulk users with a csv-file and add an expiration date for all users. I collect the users who's account will expire within 32 days like this:get-aduser -Properties *...

View Article

Linking a GPO to an OU with Powershell

Hi,I have a script that creates an OU, several child OUs, a GPO for the parent OU and attempts to link the created GPO to the parent OU and pre-existing GPOs to the child OUs. I have everything working...

View Article

How to call a SQL scalar function from PowerShell

Re: How to call a SQL scalar function from PowerShellI have a v2 PS script and want to call a SQL scalar-value function which returns a string. I have searched and searched but am unable to find a...

View Article


Need help with copying group policy links to a new OU

Good Morning everyone. I hope you can help (pretty sure you can). I am working on a powershell script to copy the OU structure from an existing OU and create a new one and then apply the same group...

View Article

Power Shell Script for Check Remote machinces are live or not

I have required a Power Shell Script for Check multiple Remote machines are live or not.Please guide me

View Article


Windows Script Component Registration Generate 0x80004005 Error Code

Scenario :I create a simple .hta for managing students information and personal data. I create an application registration system which is required by the user to register the .hta before using it...

View Article

RUNAS another user: assistance with my batch file for control panel and explorer

Hello, for desktop support on end user or multi/generic user pcs it is nice to access common commands quickly from a batch file to run under your account. In xp both explorer and control panel apps...

View Article


Performing an Active Directory Username Dump

I am very new to using Powershell (read: Just started learning about it this week) and am hoping to get some help to accomplish 2 simple tasks.I would first like to dump all of the usernames from my...

View Article

Cant link access database to html page

<html><head><title>ASCAM Winery Customers Database Application</title><Img height="350" width="175" style="float:left;"...

View Article

Working Batch Command Fails when passed to command line from VBA?

Hi Friends,I have a great working snippet that copies files from/to the destinations inside a .csv:for /f "tokens=1,2 delims=," %a in (xImageCopy.csv) do copy "%~a" "%~b"In a cmd window, if I Chdir to...

View Article
Browsing all 15028 articles
Browse latest View live


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