[{"data":1,"prerenderedAt":577},["ShallowReactive",2],{"\u002Fdocs\u002Fagents\u002Fwindows":3},{"id":4,"title":5,"body":6,"description":569,"extension":570,"meta":571,"navigation":572,"path":573,"seo":574,"stem":575,"__hash__":576},"docs\u002Fdocs\u002Fagents\u002Fwindows.md","Windows Agent",{"type":7,"value":8,"toc":555},"minimark",[9,13,33,48,53,67,71,106,123,126,157,173,188,193,212,228,232,239,243,250,259,262,266,270,333,343,347,373,377,384,461,471,474,489,496,500,551],[10,11,5],"h1",{"id":12},"windows-agent",[14,15,16,17,21,22,27,28,32],"p",{},"The NetIgnite agent runs on a Windows PC, too. The dashboard then sees whether the PC is online and\ncan ",[18,19,20],"strong",{},"shut it down or restart it",". It's the same program as the ",[23,24,26],"a",{"href":25},"\u002Fdocs\u002Fagents\u002Flinux","Linux agent",",\nin host mode; ",[23,29,31],{"href":30},"\u002Fdocs\u002Fagents\u002Flinux#wake-on-lan-mode","Wake-on-LAN mode"," (waking other devices) is\nonly available on Linux.",[14,34,35,36,40,41,47],{},"The agent runs in the background as the built-in account ",[37,38,39],"code",{},"LOCAL SERVICE",", which can't read your\nuser folders. It talks to the server over one outgoing WebSocket; nothing listens on the PC. Source\nand releases: ",[23,42,46],{"href":43,"rel":44},"https:\u002F\u002Fgithub.com\u002FNetIgnite-project\u002FAgent-Linux",[45],"nofollow","NetIgnite-project\u002FAgent-Linux",".",[49,50,52],"h2",{"id":51},"requirements","Requirements",[54,55,56,64],"ul",{},[57,58,59,60,63],"li",{},"Windows 10 or 11, 64-bit, on an x86-64 CPU (",[37,61,62],{},"netignite-agent-windows-x64.exe",").",[57,65,66],{},"PowerShell (included in Windows) and an administrator account for the installation.",[49,68,70],{"id":69},"install","Install",[72,73,74,84,90],"ol",{},[57,75,76,77,80,81,63],{},"In the dashboard, create an agent of the kind ",[18,78,79],{},"Windows agent"," (",[18,82,83],{},"Agents → Add agent",[57,85,86,87,47],{},"On its page, click ",[18,88,89],{},"Create setup command",[57,91,92,93,96,97,101,102,105],{},"Open PowerShell with ",[18,94,95],{},"Run as administrator"," (right-click the Start button → ",[98,99,100],"em",{},"Terminal (Admin)","\nor ",[98,103,104],{},"Windows PowerShell (Admin)",") and run the command within 15 minutes:",[107,108,114],"pre",{"className":109,"code":110,"filename":111,"language":112,"meta":113,"style":113},"language-powershell shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","[Net.ServicePointManager]::SecurityProtocol = [Net.ServicePointManager]::SecurityProtocol -bor [Net.SecurityProtocolType]::Tls12; & ([scriptblock]::Create((irm 'https:\u002F\u002Fnetignite.example.com\u002Finstall\u002Fwindows.ps1'))) 'netignite_enroll_…'\n","PowerShell (administrator)","powershell","",[37,115,116],{"__ignoreMap":113},[117,118,121],"span",{"class":119,"line":120},"line",1,[117,122,110],{},[14,124,125],{},"The script, served by your NetIgnite server:",[72,127,128,131,147,150],{},[57,129,130],{},"checks that it runs as an administrator on 64-bit Windows,",[57,132,133,134,136,137,140,141,146],{},"downloads ",[37,135,62],{}," and ",[37,138,139],{},"SHA256SUMS"," from the\n",[23,142,145],{"href":143,"rel":144},"https:\u002F\u002Fgithub.com\u002FNetIgnite-project\u002FAgent-Linux\u002Freleases",[45],"GitHub releases"," and checks the\nchecksum,",[57,148,149],{},"pairs the agent with the server using the token,",[57,151,152,156],{},[23,153,155],{"href":154},"#the-scheduled-task","installs"," the agent and starts it.",[14,158,159,160,163,164,166,167,136,170,47],{},"The agent shows up as online on its page. Then open (or add) the device for this PC, choose the\nagent under ",[18,161,162],{},"Agent on the device",", and choose the status check ",[18,165,162],{},". The device\ngets ",[18,168,169],{},"Shut down",[18,171,172],{},"Reboot",[14,174,175,176,179,180,183,184,187],{},"The release it installs is chosen like for the ",[23,177,26],{"href":178},"\u002Fdocs\u002Fagents\u002Flinux#install",": the\nnewest stable one, unless the server's admin pinned another. ",[37,181,182],{},"$env:NETIGNITE_AGENT_VERSION"," (a\nrelease tag) and ",[37,185,186],{},"$env:NETIGNITE_AGENT_BASE_URL"," (a mirror with the release files), set in the same\nPowerShell window before the command, override that.",[189,190,192],"h3",{"id":191},"manual-install","Manual install",[14,194,195,196,136,198,140,200,204,205,208,209,211],{},"Download ",[37,197,62],{},[37,199,139],{},[23,201,203],{"href":143,"rel":202},[45],"releases",", compare\n",[37,206,207],{},"(Get-FileHash .\\netignite-agent-windows-x64.exe).Hash"," with the line in ",[37,210,139],{},", and run in\nPowerShell as an administrator:",[107,213,215],{"className":109,"code":214,"filename":111,"language":112,"meta":113,"style":113},".\\netignite-agent-windows-x64.exe pair https:\u002F\u002Fnetignite.example.com netignite_enroll_…\n.\\netignite-agent-windows-x64.exe install\n",[37,216,217,222],{"__ignoreMap":113},[117,218,219],{"class":119,"line":120},[117,220,221],{},".\\netignite-agent-windows-x64.exe pair https:\u002F\u002Fnetignite.example.com netignite_enroll_…\n",[117,223,225],{"class":119,"line":224},2,[117,226,227],{},".\\netignite-agent-windows-x64.exe install\n",[189,229,231],{"id":230},"updating","Updating",[14,233,234,235,238],{},"Run the setup command again without the token at the end (",[37,236,237],{},"… \u002Finstall\u002Fwindows.ps1')))","). It\ndownloads the current release and reinstalls it with the existing pairing.",[189,240,242],{"id":241},"pairing-again","Pairing again",[14,244,245,246,249],{},"If the agent is already installed, the agent's page offers a pair command under ",[98,247,248],{},"Agent already\ninstalled?",":",[107,251,253],{"className":109,"code":252,"filename":111,"language":112,"meta":113,"style":113},"& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\" pair https:\u002F\u002Fnetignite.example.com netignite_enroll_…\n",[37,254,255],{"__ignoreMap":113},[117,256,257],{"class":119,"line":120},[117,258,252],{},[14,260,261],{},"The running agent restarts with the new credential.",[49,263,265],{"id":264},"the-scheduled-task","The scheduled task",[14,267,268,249],{},[37,269,69],{},[54,271,272,279,301,310,320,330],{},[57,273,274,275,278],{},"copies the agent to ",[37,276,277],{},"C:\\Program Files\\NetIgnite\\netignite-agent.exe",",",[57,280,281,282,285,286,289,290,292,293,296,297,300],{},"keeps the config ",[37,283,284],{},"C:\\ProgramData\\NetIgnite\\agent.json"," readable for administrators, ",[37,287,288],{},"SYSTEM"," and\n",[37,291,39],{}," only (",[37,294,295],{},"pair"," already restricts the folder: below ",[37,298,299],{},"ProgramData",", every user could\nread it otherwise),",[57,302,303,304,306,307,278],{},"gives ",[37,305,39],{}," write access to the log folder ",[37,308,309],{},"C:\\ProgramData\\NetIgnite\\logs",[57,311,312,313,315,316,319],{},"grants ",[37,314,39],{}," the right to shut the PC down, in the local security policy (",[37,317,318],{},"uninstall","\ntakes it back; Windows doesn't grant that account the right itself),",[57,321,322,323,326,327,329],{},"registers the scheduled task ",[18,324,325],{},"NetIgnite Agent",": started at boot, before anyone logs in, as\n",[37,328,39],{},"; restarted once a minute if it stops; no time limit; also on battery,",[57,331,332],{},"starts it.",[14,334,335,336,338,339,342],{},"The permissions are set by the accounts' SIDs, so it works on Windows in any language. The task is\nvisible in the Task Scheduler; don't change it there, run ",[37,337,69],{}," again instead. The shutdown\nright shows up under ",[98,340,341],{},"Shut down the system"," in the Local Security Policy.",[49,344,346],{"id":345},"shutdown-and-restart","Shutdown and restart",[14,348,349,350,353,354,357,358,361,362,365,366,369,370,372],{},"The server sends ",[37,351,352],{},"HOST_CONTROL"," with ",[37,355,356],{},"shutdown"," or ",[37,359,360],{},"reboot",". The agent answers and runs\n",[37,363,364],{},"shutdown.exe \u002Fs \u002Ft 0 \u002Fd p:0:0"," (or ",[37,367,368],{},"\u002Fr"," to restart) itself, using the right that ",[37,371,69],{}," granted.\nThat's the only program it runs. Windows asks the open programs to close; one with unsaved changes can\nhold up the shutdown until someone answers on the PC.",[49,374,376],{"id":375},"commands","Commands",[14,378,379,380,383],{},"In PowerShell as an administrator, with ",[37,381,382],{},"& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\""," in\nfront:",[385,386,387,400],"table",{},[388,389,390],"thead",{},[391,392,393,397],"tr",{},[394,395,396],"th",{},"Command",[394,398,399],{},"What it does",[401,402,403,414,426,441,451],"tbody",{},[391,404,405,411],{},[406,407,408],"td",{},[37,409,410],{},"pair \u003Cserver-url> \u003Ctoken>",[406,412,413],{},"Registers with the server and writes the config.",[391,415,416,420],{},[406,417,418],{},[37,419,69],{},[406,421,422,423,63],{},"Sets up and starts the scheduled task (",[37,424,425],{},"--dry-run",[391,427,428,432],{},[406,429,430],{},[37,431,318],{},[406,433,434,435,438,439,63],{},"Removes it (",[37,436,437],{},"--purge",", ",[37,440,425],{},[391,442,443,448],{},[406,444,445],{},[37,446,447],{},"status",[406,449,450],{},"Shows the config, the server, the agent ID, the task's state and whether the server and the credential work. Never shows the secret.",[391,452,453,458],{},[406,454,455],{},[37,456,457],{},"version",[406,459,460],{},"Prints the version.",[14,462,463,464,467,468,63],{},"The agent logs to ",[37,465,466],{},"C:\\ProgramData\\NetIgnite\\logs\\agent.log"," (up to 1 MB, then ",[37,469,470],{},"agent.log.1",[49,472,473],{"id":318},"Uninstall",[107,475,477],{"className":109,"code":476,"filename":111,"language":112,"meta":113,"style":113},"& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\" uninstall           # keeps the config (administrators only)\n& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\" uninstall --purge   # also deletes the config with the credential\n",[37,478,479,484],{"__ignoreMap":113},[117,480,481],{"class":119,"line":120},[117,482,483],{},"& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\" uninstall           # keeps the config (administrators only)\n",[117,485,486],{"class":119,"line":224},[117,487,488],{},"& \"C:\\Program Files\\NetIgnite\\netignite-agent.exe\" uninstall --purge   # also deletes the config with the credential\n",[14,490,491,492,495],{},"This stops and deletes the task, the log folder and ",[37,493,494],{},"C:\\Program Files\\NetIgnite"," (the program file\nis deleted right after the command has finished, since Windows can't delete a running program).\nDelete the agent in the dashboard too.",[49,497,499],{"id":498},"security","Security",[54,501,502,519,536],{},[57,503,504,507,508,136,511,80,513,515,516,518],{},[18,505,506],{},"Fixed actions only."," The server can ask for ",[37,509,510],{},"PING",[37,512,352],{},[37,514,356],{}," or\n",[37,517,360],{},"). There's no remote shell, no file access and no configuration change from the server.",[57,520,521,524,525,528,529,531,532,535],{},[18,522,523],{},"The secret"," is generated on the PC and only leaves it in the ",[37,526,527],{},"Authorization"," header. The\nserver stores only a hash. The config folder is readable for administrators, ",[37,530,288],{}," and the\nagent only. Use an ",[37,533,534],{},"https:\u002F\u002F"," server address outside your LAN.",[57,537,538,541,542,544,545,547,548,550],{},[18,539,540],{},"The account"," ",[37,543,39],{}," is Windows' built-in account for services with minimal rights:\nit can't read your user folders or change the system. Its one extra right, to shut down, was\ngranted by ",[37,546,69],{}," and is taken back by ",[37,549,318],{},". The agent needs no administrator rights\nafter the installation.",[552,553,554],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":113,"searchDepth":224,"depth":224,"links":556},[557,558,564,565,566,567,568],{"id":51,"depth":224,"text":52},{"id":69,"depth":224,"text":70,"children":559},[560,562,563],{"id":191,"depth":561,"text":192},3,{"id":230,"depth":561,"text":231},{"id":241,"depth":561,"text":242},{"id":264,"depth":224,"text":265},{"id":345,"depth":224,"text":346},{"id":375,"depth":224,"text":376},{"id":318,"depth":224,"text":473},{"id":498,"depth":224,"text":499},"The NetIgnite agent for Windows: install it with one PowerShell command, the scheduled task, shutdown and restart, uninstalling and security.","md",{},{"title":5},"\u002Fdocs\u002Fagents\u002Fwindows",{"title":5,"description":569},"docs\u002Fagents\u002Fwindows","FoAj-1hxHypueY7SAW361wCUY4XUV9Rico_-zzbACpc",1793007281797]