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
Option Explicit | |
Dim TheRoot, TheDisplay, TheContext, TheMenu, TheLoop, TheNewMenu | |
set TheRoot = Getobject(LDAP://RootDSE) | |
set TheContext = GetObject("LDAP://" & "CN=409, CN=DisplaySpecifiers," & TheRoot.get("configurationNamingContext")) | |
Set TheDisplay = TheContext.GetObject("displaySpecifier","cn=user-Display") | |
TheLoop = 0 | |
If Not IsEmpty(TheDisplay.adminContextMenu) Then TheMenu = TheDisplay.GetEx("adminContextMenu") | |
For TheLoop = LBound(TheMenu) to UBound(TheMenu) | |
If InStr(TheMenu(TheLoop),"&Default Printer") Then | |
MsgBox "Menu already exists ... exiting ..." |
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
Option Explicit | |
Dim Args, TheUser, TheNewValue | |
Set Args = Wscript.Arguments | |
Set TheUser = GetObject(Args(0)) | |
TheNewValue = InputBox("Old Default Printer: " & TheUser.defaultPrinter & vbCRLF & vbCRLF& vbCRLF& vbCRLF & "New Default Printer","Domain Default Printer",TheUser.defaultPrinter) | |
if TheNewValue <> "" then TheUser.Put "defaultPrinter",TheNewValue | |
TheUser.SetInfo | |
Set TheUser = Nothing | |
WScript.Quit |
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
Sub ModifyUsers(ByVal TheObject) | |
Dim TheUser | |
For Each TheUser In TheObject | |
Select Case TheUser.Class | |
Case "user" | |
TheUser.Put("DefaultPrinter", "LDNLGHNPXXX") | |
TheUser.Setinfo() | |
Case "organizationalUnit", "container" | |
ModifyUsers(TheUser) | |
End Select |
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
dn: CN=defaultPrinter,CN=Schema,CN=Configuration,DC=depicus,DC=com | |
changetype: add | |
adminDescription: Default-Printer | |
adminDisplayName: defaultPrinter | |
attributeID: 1.2.840.113556.1.8000.548.9460 | |
attributeSecurityGUID:: hri1d0qU0RGuvQAA+ANnwQ== | |
attributeSyntax: 2.5.5.12 | |
cn: defaultPrinter | |
isMemberOfPartialAttributeSet: TRUE | |
isSingleValued: TRUE |
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
<form method="post" action="bottom.asp" target="bottom"> | |
<p align="justify" style="margin-left: 10">This is where you would enter the Mac Address.</p> | |
<input type="text" name="MacAddress" size="20" value="009027a322fc"> | |
<input type="text" name="IpNumber" size="20" value="195.188.159.20"> | |
<input type="text" name="SubnetMask" size="20" value="255.255.255.0"> | |
<input type="submit" value="Send Magic Packet" name="thebutton" class="button"> | |
</form> |
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
<% | |
set WakeOnLan = server.createobject("DigitalWol.Wol") | |
WakeOnLan.TheMacAddress('009027a322fc') | |
WakeOnLan.TheIpNumber('217.204.255.61') | |
WakeOnLan.TheSubnetMask('255.255.255.255') | |
WakeOnLan.ThePortNumber('4343') | |
WakeOnLan.WakeMeUp | |
%> |
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
@charset "UTF-8"; | |
.icon-note.icon-left a:before, .icon-note.icon-right a:after { content: "\266a"; height: inherit; } | |
i.icon-note:before { content: "\266a"; height: inherit; } | |
.icon-note-beamed.icon-left a:before, .icon-note-beamed.icon-right a:after { content: "\266b"; height: inherit; } | |
i.icon-note-beamed:before { content: "\266b"; height: inherit; } |
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
try { | |
LoggerContext context = (LoggerContext) LoggerFactory.getILoggerFactory(); | |
JoranConfigurator jc = new JoranConfigurator(); | |
jc.setContext(context); | |
context.reset(); | |
context.putProperty("WorkStationID", dateWeAreSendingFor); | |
ClassLoader loader = main.class.getClassLoader(); | |
jc.doConfigure(loader.getResource("logback.xml")); | |
} catch (JoranException ex) { | |
logger.error("init logging failed", ex); |
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
sudo iptables -F | |
sudo iptables -A INPUT -i eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT | |
sudo iptables -A INPUT -i eth0 -p tcp --dport 80 -j ACCEPT | |
sudo iptables -A INPUT -i eth0 -p tcp --dport 443 -j ACCEPT | |
sudo iptables -A INPUT -i eth0 -j DROP | |
sudo apt-get install iptables-persistent -y | |
sudo dpkg-reconfigure iptables-persistent |
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
# The primary network interface | |
auto eth0 | |
iface eth0 inet static | |
address 10.11.11.33 | |
netmask 255.255.0.0 | |
gateway 10.11.2.6 | |
dns-nameservers 10.11.1.24 8.8.8.8 |