• Recent
    • Unsolved
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login
    1. Home
    2. x23piracy
    3. Posts
    • Profile
    • Following 1
    • Followers 6
    • Topics 118
    • Posts 1,166
    • Groups 3

    Posts

    Recent Best Controversial
    • RE: VirtualBox FOG Server Download

      @SaxxAppeal said in VirtualBox FOG Server Download:

      @george1421 said in VirtualBox FOG Server Download:

      @Riggie8 This thread has been long abandon. Its much easier now to spin up a new linux server and then install FOG on it. We can guide you if you need.

      Here is the wiki page for installing Centos 7 and then FOG: https://wiki.fogproject.org/wiki/index.php?title=CentOS_7

      This thread has certainly not been abandoned… A lot of members have messaged me for the link and I’ve continued to share it!

      It’s quite easy to spin up a new server and install a clean FOG, I agree. But some people have trouble or are not comfortable with working in the LINUX CLI. And to that end, I continue to offer the VM for all who are interested.

      I’m also working on a new VM with v. 1.4 installed, hopefully I’ll have that in the next week or two.

      As always, I’m available to share the bit that I know with all.

      But think about switching the distro, ubuntu has been a pain and the life time is short.

      Regards X23

      posted in Tutorials
      x23piracyX
      x23piracy
    • RE: PartImage faster than PartClone?

      https://forums.fogproject.org/topic/3280/partclone-vs-partimage
      https://forums.fogproject.org/topic/3060/difference-between-partimage-and-partclone

      posted in General
      x23piracyX
      x23piracy
    • RE: Webcast: Imaging with FOG, Managing with PDQ

      @bmorris is the 13.2 patch official?

      posted in Tutorials
      x23piracyX
      x23piracy
    • RE: Help with Mass Hard drive cloning station

      @zionda Hi, is there no network infrastructure? FOG is doing it’s job over the network and the clue is since every computer is connected to the network you don’t need to move em. You also can wake em remotely.

      For your case i would image the computer, replace the harddrive and deploy the image back to the new drive what ever it is m2, ssd, hdd.

      I bet you haven’t seen fog taking its actions right? 🙂 if so please try it you will be flashed out 😄

      Regards X23

      posted in General
      x23piracyX
      x23piracy
    • RE: Help with Mass Hard drive cloning station

      @Avaryan @zionda thats really uncomfortable and kind of tinkering. Just forget FOG for this case, just use a cloning solution on that local computer were you have all the drives connected via usb3.

      I’ve seen something different in the past at atos origin, they used IBM Tivoli but they connected the whole computers not just the harddrives, but just using a harddrive was also possible with that.

      Regards X23

      posted in General
      x23piracyX
      x23piracy
    • RE: Wrong Image size in web interface

      @tom-elliott is it back? https://forums.fogproject.org/topic/8180/image-size-on-client-0-00-ib

      posted in FOG Problems
      x23piracyX
      x23piracy
    • RE: Delete Host gui login

      It’s not a bug it’s a feature 😉

      posted in Feature Request
      x23piracyX
      x23piracy
    • RE: FOG Updater

      @Tom-Elliott don’t slap me, i will not use the script i was just fighting for the op 😉

      posted in General
      x23piracyX
      x23piracy
    • RE: FOG Updater

      @Tom-Elliott it doesn’t work.

      posted in General
      x23piracyX
      x23piracy
    • RE: PXE Booting Hyper-V 2016

      Any news?

      https://forums.fogproject.org/topic/10040/fog-uefi-boot-hyper-v-2016

      posted in General Problems
      x23piracyX
      x23piracy
    • RE: FOG UEFI Boot Hyper-V 2016

      @ty900000 it sounds like network isn’t working for you, maybe you need another kernel @george1421?
      Is this your post? https://community.spiceworks.com/topic/1957582-pxe-problem-hyper-v-2016-with-gen2-
      vm-uefi-boot

      It seems your problem is known and unsolved
      https://forums.fogproject.org/topic/8843/pxe-booting-hyper-v-2016

      posted in General Problems
      x23piracyX
      x23piracy
    • RE: FOG UEFI Boot Hyper-V 2016

      @ty900000 Secure boot must be off in the moment you boot via EFI to PXE. Or what do you mean with “first time”?

      posted in General Problems
      x23piracyX
      x23piracy
    • RE: Cannot deploy HP ZBook 15 G3

      @george1421 Windows was telling me after the second boot (inaccessible boot device) this was after the bootloader.

      Regards X23

      posted in FOG Problems
      x23piracyX
      x23piracy
    • RE: Cannot deploy HP ZBook 15 G3

      @george1421 no i capture from a vm with just one drive, this notebook is a special case, in normal our notebook only have one drive. I think the main issue is that this system prefers m2 before sata.

      tom-elliott i will try the different kernels and report back.

      Regards X23

      posted in FOG Problems
      x23piracyX
      x23piracy
    • RE: Cannot deploy HP ZBook 15 G3

      Hi,

      i tried to deploy again in legacy, let windows do all its stuff. Then i reconnected the 1tb hdd and tried to boot again… and wow this time it works no more (inaccessible boot device).

      But i still cannot deploy in uefi, what can i do to find out what exactly is the problem with booting the kernel?
      Can i try a different kernel?

      Regards X23

      posted in FOG Problems
      x23piracyX
      x23piracy
    • Cannot deploy HP ZBook 15 G3

      Hi,

      when i try to deploy an image (Windows 10) to an HP ZBook 15 G3 in legacy mode i get a inaccessible boot device after windows was finishing setup (sysprepped win 10) i think this is related to the internal drives.

      The Notebook has a 256GB M2 SSD and a 1TB HDD, when both connected the HDD will be first device and the SSD the second. So i deploey with the primary disk option /dev/sdb, this is working so far but after Windows 10 has finished the setup process and trys to boot the first time it get inaccessible boot device.

      When i disconnect the hdd and deploy to ssd system will boot fine until i connect the hdd again (inaccessible boot device).

      Then i tried to deploy by UEFI (i have all my images twice, legacy and uefi) but then the system has boot problems:

      alt text

      Any idea howto deploy my image to this device?
      With the legacy deployment i tried the repair options from windows but it couldn’t fix it.

      Regards X23

      posted in FOG Problems
      x23piracyX
      x23piracy
    • RE: FOG Updater

      is this what the filename is intending? will this auto update without hassles to latest dev branch build? Something that may can be used by a cronjob by night?

      posted in General
      x23piracyX
      x23piracy
    • RE: Issue Capturing HP ELite Desk 800G3 on version 6213

      @george1421 Beer 😉

      posted in FOG Problems
      x23piracyX
      x23piracy
    • RE: Add new standard user on windows 10

      FYI, Powershell command/script can also be used as a snapin.

      Regards X23

      posted in FOG Problems
      x23piracyX
      x23piracy
    • Quick way to connect Windows 10 embedded VPN connections

      Hi there,

      in work we use a checkpoint firewall thats also giving us vpn access. Since Windows 10 is supporting Checkpoint VPN named “Capsule” on the store:

      https://www.microsoft.com/de-de/store/p/check-point-capsule-vpn/9wzdncrdjxtj
      It’s possible to use Windows 10 internal VPN instead of installing Checkpoints VPN Client.

      Windows 10 from 1511 to 1607 just offered a real bad way to connect this VPN Connection by GUI, you had to click several times until the connection has been connected. A minimum is 5 clicks.

      With 1703 this has changed and you can now access your VPN directly from Systray:

      alt text

      Applause Microsoft now i only need 3 Click up to a connection 😉
      I still hate it to need to click so often for a simple VPN Connection so i wrote myself something.

      The program is called VPNTool, it’s a single exe binary that will place a systray icon:

      alt text

      with the following options:

      • left or right click on the icon will show a popupmenu:

      alt text

      • Connect/Disconnect
      • Reconnect on connection drop
      • Notifications about connection state on/off
      • Close the App for example:

      alt text

      The program cannot be closed by click against accidents you need to press STRG + ALT + X (global Hotkey)

      • Every Action can additional to mouse done by global Hotkeys as seen on the Screenshot (open popup)

      • Doubleclick on the systray icon will dial or disconnect depending on connection state.

      Now i just need a double click or 2 normal clicks or just need to press STRG + ALT + V to connect my VPN.

      I will paste my source code here:

      unit Unit1;
      
      interface
      
      uses
        Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
        Dialogs, CoolTrayIcon, Menus, StdCtrls, ImgList, TextTrayIcon, StrUtils,
        ExtCtrls, ShellAPI;
      
      type
        TForm1 = class(TForm)
          TextTrayIcon1: TTextTrayIcon;
          Timer1: TTimer;
          PopupMenu1: TPopupMenu;
          VerbindenAuflegen1: TMenuItem;
          Beenden1: TMenuItem;
          Wiederverbinden1: TMenuItem;
          Timer2: TTimer;
          Benachrichtigungen1: TMenuItem;
          ListBox1: TListBox;
          procedure FormCreate(Sender: TObject);
          procedure Timer1Timer(Sender: TObject);
          procedure VerbindenAuflegen1Click(Sender: TObject);
          procedure FormDestroy(Sender: TObject);
          procedure Beenden1Click(Sender: TObject);
          procedure Wiederverbinden1Click(Sender: TObject);
          procedure Timer2Timer(Sender: TObject);
          procedure TextTrayIcon1DblClick(Sender: TObject);
          procedure Benachrichtigungen1Click(Sender: TObject);
        private
          id1, id2, id3, id4 : Integer;
          procedure WMHotKey(var Msg: TWMHotKey); message WM_HOTKEY;
          { Private declarations }
        public
          MinIcon : array[0..1] of TIcon;
          { Public declarations }
        end;
      
      var
        Form1: TForm1;
        mHandle: THandle; // Mutexhandle
      
      implementation
      
      {$R *.dfm}
      
      procedure TForm1.WMHotKey(var Msg: TWMHotKey);
      begin
        if Msg.HotKey = id1 then
          Form1.VerbindenAuflegen1.Click;
        if Msg.HotKey = id2 then
          Form1.Close;
        if Msg.HotKey = id3 then
          Form1.Wiederverbinden1.Click;
        if Msg.HotKey = id4 then
          Form1.Benachrichtigungen1.Click;
      end;
      
      function Konsole(const Command: String): String;
      var
        StartupInfo: TStartupInfo;
        ProcessInfo: TProcessInformation;
        SecurityAttr: TSecurityAttributes;
        OutputPipeRead, OutputPipeWrite: THandle;
        Res: Boolean;
        BufSize: Cardinal;
        Buffer: String;
        BytesRead: Cardinal;
      begin
        //Initialisierung ProcessInfo
        FillChar(ProcessInfo, SizeOf(TProcessInformation), 0);
      
        //Initialisierung SecurityAttr
        FillChar(SecurityAttr, SizeOf(TSecurityAttributes), 0);
        SecurityAttr.nLength := SizeOf(SecurityAttr);
        SecurityAttr.bInheritHandle := true;
        SecurityAttr.lpSecurityDescriptor := nil;
      
        //Pipe erzeugen
        CreatePipe(OutputPipeRead, OutputPipeWrite, @SecurityAttr, 0);
      
        //Initialisierung StartupInfo
        FillChar(StartupInfo, SizeOf(TStartupInfo), 0);
        StartupInfo.cb:=SizeOf(StartupInfo);
        StartupInfo.hStdInput := 0;
        StartupInfo.hStdOutput := OutputPipeWrite;
        StartupInfo.hStdError := OutputPipeWrite;
        StartupInfo.wShowWindow := SW_HIDE;
        StartupInfo.dwFlags := STARTF_USESHOWWINDOW or STARTF_USESTDHANDLES;
      
        //Prozess erzeugen
        Res := CreateProcess(nil, PChar(command), nil, nil, true,
                         CREATE_DEFAULT_ERROR_MODE or CREATE_NEW_CONSOLE or
                         NORMAL_PRIORITY_CLASS, nil, nil, StartupInfo, ProcessInfo);
      
        //OutputPipeWrite schließen
        CloseHandle(OutputPipeWrite);
      
        Result := '';
      
        if Res then
        begin
          //OutputPipeRead auslesen
          SetLength(Buffer, 5000);
          BufSize := Length(Buffer);
          repeat
            Res := ReadFile(OutputPipeRead, Buffer[1], BufSize, BytesRead, nil);
            Result := Result + Copy(Buffer, 1, BytesRead);
          until not Res;
      
          //auf Prozessende warten
          WaitForSingleObject(ProcessInfo.hProcess, INFINITE);
          CloseHandle(ProcessInfo.hProcess);
        end;
      
        //OutputPipeRead schließen
        CloseHandle(OutputPipeRead);
      end;
      
      procedure TForm1.FormCreate(Sender: TObject);
      const
        MOD_ALT = 1;
        MOD_CONTROL = 2;
        VK_B = $42;
        VK_V = $56;
        VK_W = $57;
        VK_X = $58;
      begin
        mHandle := CreateMutex(nil,True,'VPNTool');
        if GetLastError = ERROR_ALREADY_EXISTS then
        begin
          Halt;
        end;
        MinIcon[0]:=TIcon.Create;
        MinIcon[1]:=TIcon.Create;
        MinIcon[0].Handle:=LoadIcon(hInstance,'lock');
        MinIcon[1].Handle:=LoadIcon(hInstance,'lock2');
        id1 := GlobalAddAtom('Hotkey1');
        RegisterHotKey(Handle, id1, MOD_CONTROL + MOD_Alt, VK_V);
        id2 := GlobalAddAtom('Hotkey2');
        RegisterHotKey(Handle, id2, MOD_CONTROL + MOD_Alt, VK_X);
        id3 := GlobalAddAtom('Hotkey3');
        RegisterHotKey(Handle, id3, MOD_CONTROL + MOD_Alt, VK_W);
        id4 := GlobalAddAtom('Hotkey4');
        RegisterHotKey(Handle, id4, MOD_CONTROL + MOD_Alt, VK_B);
        Self.Hide;
        WindowState := wsMinimized;
        ShowWindow(Application.Handle, SW_Hide);
        if AnsiContainsText(Konsole('cmd /c rasdial'),'hergestellt') then
        begin
          TextTrayIcon1.Icon := MinIcon[0];
          PopupMenu1.Items[0].Caption := 'Auflegen';
        end
        else
        begin
          TextTrayIcon1.Icon := MinIcon[1];
          PopupMenu1.Items[0].Caption := 'Verbinden';
        end;
      end;
      
      procedure TForm1.Timer1Timer(Sender: TObject);
      begin
        if AnsiContainsText(Konsole('cmd /c rasdial'),'hergestellt') then
        begin
          TextTrayIcon1.Icon := MinIcon[0];
          PopupMenu1.Items[0].Caption := 'Auflegen';
        end
        else
        begin
          TextTrayIcon1.Icon := MinIcon[1];
          PopupMenu1.Items[0].Caption := 'Verbinden';
        end;
      end;
      
      procedure TForm1.Timer2Timer(Sender: TObject);
      begin
        if AnsiContainsText(Konsole('cmd /c rasdial'),'Keine') then if PopupMenu1.Tag = 1 then Form1.VerbindenAuflegen1.Click;
      end;
      
      procedure TForm1.VerbindenAuflegen1Click(Sender: TObject);
      begin
        //if AnsiContainsText(Konsole('ipconfig'),'VPN Haan')
        if AnsiContainsText(Konsole('cmd /c rasdial'),'hergestellt') then
        begin
          ShellExecute(handle,'open',PChar('rasdial'), PChar('"VPN Haan" /d'),'',SW_HIDE);
          if Form1.Tag = 1 then
          begin
            ListBox1.Items[2] := '$notificationTitle = "VPN Verbindung getrennt. " + [DateTime]::Now.ToShortTimeString()';
            ListBox1.Items.SaveToFile(SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1');
            ShellExecute(handle,'open',PChar('Powershell.exe'), PChar('-ExecutionPolicy Bypass -File ' + SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1'),'',SW_HIDE);
          end;
        end
        else
        begin
          ShellExecute(handle,'open',PChar('rasdial'), PChar('"VPN Haan"'),'',SW_HIDE);
          if Form1.Tag = 1 then
          begin
            ListBox1.Items[2] := '$notificationTitle = "VPN Verbindung hergestellt. " + [DateTime]::Now.ToShortTimeString()';
            ListBox1.Items.SaveToFile(SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1');
            ShellExecute(handle,'open',PChar('Powershell.exe'), PChar('-ExecutionPolicy Bypass -File ' + SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1'),'',SW_HIDE);
          end;
        end;
      end;
      
      procedure TForm1.Wiederverbinden1Click(Sender: TObject);
      begin
        if PopupMenu1.Items[1].Checked = False then
        begin
          PopupMenu1.Tag := 0;
          Timer2.Enabled := False;
        end
          else
        begin
          PopupMenu1.Tag := 1;
          Timer2.Enabled := True;
        end;
      end;
      
      procedure TForm1.Benachrichtigungen1Click(Sender: TObject);
      begin
        if PopupMenu1.Items[2].Checked = False then Form1.Tag := 0 else Form1.Tag := 1;
      end;
      
      procedure TForm1.Beenden1Click(Sender: TObject);
      begin
        if Form1.Tag = 1 then
        begin
          ListBox1.Items[2] := '$notificationTitle = "STRG + ALT + X zum beenden."';
          ListBox1.Items.SaveToFile(SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1');
          ShellExecute(handle,'open',PChar('Powershell.exe'), PChar('-ExecutionPolicy Bypass -File ' + SysUtils.GetEnvironmentVariable('temp') + '\VPNTool.ps1'),'',SW_HIDE);
        end;
      end;
      
      procedure TForm1.FormDestroy(Sender: TObject);
      begin
        UnRegisterHotKey(Handle, id1);
        GlobalDeleteAtom(id1);
        UnRegisterHotKey(Handle, id2);
        GlobalDeleteAtom(id2);
        UnRegisterHotKey(Handle, id3);
        GlobalDeleteAtom(id3);
        UnRegisterHotKey(Handle, id4);
        GlobalDeleteAtom(id4);
        if mHandle <> 0 then
        CloseHandle(mHandle)
      end;
      
      procedure TForm1.TextTrayIcon1DblClick(Sender: TObject);
      begin
        Form1.VerbindenAuflegen1.Click;
      end;
      
      end.
      

      Sorry i completely left it uncommented for now.
      If anyone is interested i can also share binarys, actually all the strings are for german language but i can easily make it international.

      At this time the VPN Name and a little more is hardcoded, but it would be no pain to make this adjustable with an ini file.

      Also polling for the rasdial connection state while triggering cmd and reading its console returns is not really that what i would understand under best practice, so maybe someone has any ideas to solve this more system-orientated.

      If anyone with development skills is really reading my source code, i know i am a bad ass and please forgive me i am not a developer just a stupid technician 😉 and i know delphi is dead but i can do with it.

      Regards X23

      posted in Tutorials
      x23piracyX
      x23piracy
    • 1
    • 2
    • 19
    • 20
    • 21
    • 22
    • 23
    • 58
    • 59
    • 21 / 59