Create windows 10 boot disk on almost any linux host

Mount the ISO:

sudo mount -t udf -o loop,ro,unhide /path/to/file.iso /mnt

Insert the USB drive.
Run fdisk and specify the device name of the USB drive; for example:

sudo fdisk /dev/sdc

Delete any existing partition table and create a new one.
Create a new partition of at least 4.5 GB. Mark it bootable and set its type to 7 (HPFS/NTFS/ExFAT).
Write changes and exit fdisk.
Create a FAT-32 file system in the new partition; for example:

sudo mkfs.vfat -F 32 /dev/sdc1

Mount this partition to an existing subdirectory; for example:

sudo mount /dev/sdc1 /media/usbstick

Copy all of the files from the mounted ISO into this directory:

sudo cp -rv /mnt/* /media/usbstick

Sync the file systems just to be sure:

sudo sync

Unmount both items previously mounted:

sudo umount /media/usbstick
sudo umount /mnt

nJoy πŸ˜‰

 

Controlling windows system from a Linux box.

Set up winexe.

wget "ftp://ftp.pbone.net/mirror/ftp5.gwdg.de/pub/opensuse/repositories/home:/GRNET:/synnefo/CentOS_CentOS-6/x86_64/winexe-1.00-9.1.x86_64.rpm"
yum install winexe-1.00-9.1.x86_64.rpm

 

Test the connection

<pre>telnet 10.0.0.123 139</pre>

Now we can try the system out

winexe -U "User 1" --password=secretpassword //10.0.0.123 'cmd /C "whoami"'

If you get :

ERROR: Failed to open connection - ERRDOS:ERRnomem

then it’s probably a Windows 7 box

run

 reg add "HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management" /v "LargeSystemCache" /t REG_DWORD /d 1 /f
 reg add "HKLM\SYSTEM\CurrentControlSet\Services\LanmanServer\Parameters" /v "Size" /t REG_DWORD /d 3 /f

on the windows box and restart.

Now try again

winexe -U "User 1" --password=secretpassword //10.0.0.123 'cmd /C "whoami"'

you should get something like :

Win7Sstem\User 1

njoy πŸ˜‰

 

 

ref:Β http://alan.lamielle.net/2009/09/03/windows-7-nonpaged-pool-srv-error-2017

ref:Β http://www.decuslib.com/decus/vmslt99a/nt/tips.txt

 

Listing SIDs in Windows

In windows (again I know …. ) sometimes you get reference to removed users ( and sometimes not so removed) Β in mmc and secpol looking like this :

S-1-5-21-123456789-3881959548-123456789-500

To check the SIDs of users for some obscure bug like I had today use:

wmic useraccount get name,sid

That’s it ..

( ofcourse you can filter it with )

wmic useraccount get name,sid | find “Administrator” /I

nJoy πŸ˜‰

 

 

Check if Windows Drive exists

In windows (yes I know) you can check if a drive exists by using

IF EXIST E:\NUL echo yep it does ..

that’s it . nJoy πŸ˜‰

 

Vmware Client Automating connections

This is a hint from Andrew Thanks..

 

 

C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\VpxClient.exe -i yes -s 10.21.68.8 -u root -p password

 

Works !

In a batch:

start “VMLauncher” /D”C:\Program Files\VMware\Infrastructure\Virtual Infrastructure Client\Launcher\” VpxClient.exe -i yes -s 10.21.68.8Β -u root -p password”

 

Thanks nJoy πŸ˜‰