This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
REG ADD HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Authentication\LogonUI\Background /t REG_SZ /v OEMBackground /d 1 /f | |
mkdir %windir%\system32\oobe\info | |
mkdir %windir%\system32\oobe\info\backgrounds | |
copy C:\path\to\custombg %windir%\system32\oobe\info\backgrounds\backgroundDefault.jpg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsquery * domainroot -filter "(&(objectCategory=Person)(objectClass=User))" -attr cn displayName givenName sn userPrincipalName sAMAccountName mail ProfilePath scriptPath homeDrive homeDirectory uniqueMember canonicalName distinguishedName objectSid legacyExchangeDN description -limit 0 > "C:\Path\to\files\All_Users.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
dsquery * domainroot -filter "(&(objectCategory=Contact)(objectClass=Contact))" -attr cn displayName givenName sn mail canonicalName distinguishedName legacyExchangeDN -limit 0 > "C:\Path\to\all_contacts.txt" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-CSV "c:\Path\to\file\usersupdate.csv" | | |
ForEach-Object {Set-QADUSer $_.SamAccountName -scriptPath $_.LoginScript -homeDirectory $_.HomeDirectory -title $_.JobTitle -department $_.Department -office $_.Office -streetAddress $_.StreetAddress -l $_.City -State $_.State -postalCode $_.PostalCode -company $_.Company -Manager $_.ManagerAdspath } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Import-Module ActiveDirectory | |
$USERS = Import-CSV c:\scripts\usersupdate.csv | |
$USERS|Foreach{ | |
Set-ADUSer -Identity $_.samaccountname -TelephoneNumber $_.TelephoneNumber -scriptPath $_.LoginScript -homeDirectory $_.HomeDirectory -title $_.JobTitle -department $_.Department -telephoneNumber $_.WorkPhone | |
-facsimileTelephoneNumber $_.Fax -office $_.Office -streetAddress $_.StreetAddress -l $_.City -st $_.State -postalCode $_.PostalCode -c $_.Country -company $_.Company -manager $_.ManagerAdspath } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>jQuery Slider</title> | |
<!-- jQuery --> | |
<script src="http://code.jquery.com/jquery-1.5.js"></script> | |
<script type="text/javascript" src="slider.js"></script> | |
<!--CSS --> | |
<link href="style.css" rel="stylesheet" media="screen"> | |
</head> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* Converts CSV to JSON | |
* Example uses Google Spreadsheet CSV feed | |
* csvToArray function I think I found on php.net | |
*/ | |
header('Content-type: application/json'); | |
// Set your CSV feed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
find . -name _notes -type d -exec rm -rf {} \; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am russom-woldezghi on github. | |
* I am russomwoldezghi (https://keybase.io/russomwoldezghi) on keybase. | |
* I have a public key ASAwe_krk7PZ9t5-7x61vzhqSfFFQIxVGJijBE2dkq6OBgo | |
To claim this, I am signing this object: |