USB Minne bootbart…

Preppa USB minnet

LIST DISK
Notera ner nummret på disken och kör med det nummret i resten av scriptet I detta Exempel är den på plats 1.
SELECT DISK 1
CLEAN
CREATE PARTITION PRIMARY
SELECT PARTITION 1
ACTIVE
FORMAT FS=NTFS Label=”Bootabel USB!” QUICK
ASSIGN
EXIT

Gå nu till DVDn med den image du vill lägga på USB minnet.
(I detta fall 2008r2 sp1)

Ställ dig i mappen d:\boot
Kör kommandot
Windows7, 2008 och nyare: BOOTSECT.EXE / NT60 H: (H: = enheten på ditt USB minne!)
XP BOOTSECT.EXE /nt52 H:

Kopiera nu ner innehållet på DVDn till H:\
Klart, bootar nu om du har satt allt rätt i datorns BIOS!

 

Hyper-v network issue – NIC is already Bound…

Multi homes Hyper-v servers får i bland egenheten att en extra virtuell switch finns , som inte är kopplad alls..

Lös detta genom följande kommanden (installerar om Microsoft Virtual Netowrk Switch Protocols)

netcfg -u vms_pp

netcfg -c p -i vms_pp

Exchange 2010

Samlar lite kommandon som är bra att ha här…

Funktioner:

Antispam – Enable på serverns via script

1. %system drive%/Program Files\Microsoft\Exchange Server\V14\Scripts folder.
./install-AntispamAgents.ps1
2. After the script has run, restart the Microsoft Exchange Transport service by running
the following command.
Restart-Service MSExchangeTransport
Powershell script to check spam reports form blocked messages
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Reason | ft count,name -Autosize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Agent | ft count,name -AutoSize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() } | Group-Object Recipients| ft count,name -AutoSize
Get-AgentLog | Where {$_.Action -ne ”AcceptMessage” -and $_.IPAddress -ne $() }
Whitelisting:
Set-ContentFilterConfig -BypassedSenders Sender1@test.com,Sender2@test.se
Visa whitelistingen med:
Get-ContentFilterConfig

Windows Debugging

To use the Microsoft Symbol Server
  1. Make sure you have installed the latest version of Debugging Tools for Windows.
  2. Start a debugging session.
  3. Decide where to store the downloaded symbols (the ”downstream store”). This can be a local drive or a UNC path.
  4. Set the debugger symbol path as follows, substituting your downstream store path for DownstreamStore.
    SRV*DownstreamStore*https://msdl.microsoft.com/download/symbols

WMI trixeri

WBEMTest är ett tool för att kunna hitta WMI poster som finns i ett system.